javascript-jquery - ios微信内置浏览器的 on()事件有问题
迷茫
迷茫 2017-04-17 12:06:59
0
2
614

如题,在ios内置浏览器里面打开微网站的时候,通过js生成的html标签,无法使用on()预加载事件,不知道什么原因?望各位大侠相助!

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
大家讲道理

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(){

        alert(11);
    })
黄舟

Asking this question, it seems that Android can’t do it either!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template