Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将锚标记附加到 Dom 后,将 click 事件绑定到它。
$('#empList a').bind("click", function (e) { alert("inr"); });
您可以使用on来执行点击动态链接。看下面的代码:
$('body').on('click', '#empList a', function() { alert("inr"); });