js中写的class 点击事件没有效果 //这样写没有效果 $(".xx").clcik(function(){····}); //改成这样写 $(document).on('click', '.xxx', function(e){ });