//当点击事件被方法嵌套,会触发两次点击事件,例如: <input id="dj" type="button" value="点击" " /> $(function () { $("#dj").click(function () { alert(3); }); }); //弹出了两次“3”,这个问题的解决办法如下: $(function () { $("#dj").unbind("click").click(function () { alert(3); }); });