日期:2014-05-16  浏览次数:20404 次

问一下jquery问题!有经验的来
动态通过addclass添加的类,不能触发jquery事件。
 $(function () { $(".play").click(function () { $(this).removeClass("play").addClass("stop"); }); });
         $(function () { $(".stop").click(function () { $(this).removeClass("stop").addClass("play"); }); });


不能来回切换。高手解答下
jQuery

------解决方案--------------------
绑定用live