js中写的class 点击事件没有效果

//这样写没有效果
$(".xx").clcik(function(){····}); 
//改成这样写
$(document).on('click', '.xxx', function(e){

});
原文地址:https://www.cnblogs.com/zjj1990/p/8086649.html