标签:默认 data ble function man more touch flow stack
当委托给一个元素添加click事件时,如果事件是委托到 document 或 body 上,并且委托的元素是默认不可点击的(如 div, span 等),此时 click 事件会失效。
例如:
//加载更多
$(‘body‘).on(‘click‘,‘.showMoreData‘,function () {
})
React attaches event listeners to the document. iOS doesn‘t fire click events for nodes (at all) unless they seem "clickable"
Safari真的不希望你点击任何不是标签的东西。这是一个已知的问题:http : //stackoverflow.com/questions/5421659/html-label-command-doesnt-work-in-iphone-browser/6472181#6472181
大概意思就是ios不认为这个元素是可以点击的
标签:默认 data ble function man more touch flow stack
原文地址:https://www.cnblogs.com/cn-oldboy/p/12688999.html