disabled的禁用在bindtouchstart上无效
发布于 5 年前 作者 ping71 1574 次浏览 来自 问答

<button class=‘head_bt’ disabled=’{{true}}’ style=’{{button_style}}’ bindtouchstart=‘bindtouchstart’ bindtouchend=‘bindtouchend’></button>

还是一样能触发bindtouchstart和bindtouchend。

不知道是BUG还是你们就是这样设计的。不过我觉得如果我禁用了这个按钮,那么这两个属性也不应该能触发。

1 回复

唔…HTML 里也是这样,会禁掉 mouse 事件,没有禁 touch 事件,这锅得 Web 标准来背。

回到顶部