动态添加的元素,给元素加点击事件的方法

$(document).on("click","#myid,.myclass",function(){
  //......
})

原文地址:https://www.cnblogs.com/hehuiqiong/p/12710726.html