6
使用jquery click处理锚点onClick()
我在for循环中有一组动态生成的锚标记,如下所示: <div id = "solTitle"> <a href = "#" id = "' + tagId + '" onClick = "openSolution();"> ' + solTitle + '</a></div> <br>'; 执行此代码后,其中一种情况的html输出将如下所示: <div id = "solTitle"> <a href = "#" id = "solution0" onClick = "openSolution();">Solution0 </a></div> <br> <div id = "solTitle"> <a href = "#" …