js动态创建的元素绑定事件 新创建的元素用传统的办法无法绑定,需要用live方法。 例: $('.rule').live('mouseover', function () { $(this).addClass("cancelable");