如题,在ios内置浏览器里面打开微网站的时候,通过js生成的html标签,无法使用on()预加载事件,不知道什么原因?望各位大侠相助!
业精于勤,荒于嬉;行成于思,毁于随。
The cause of your problem is that events are bubbling and cannot be found or multiple events are found. Write it like this! $("#p1").on("click",".k1",function(){
alert(11); })
Don’t use $(document).on("click","#p1 > .k1",function(){
Asking this question, it seems that Android can’t do it either!
The cause of your problem is that events are bubbling and cannot be found or multiple events are found.
Write it like this!
$("#p1").on("click",".k1",function(){
Don’t use
$(document).on("click","#p1 > .k1",function(){
Asking this question, it seems that Android can’t do it either!