Skip to content

在iPad 上click事件无效

今天测试提了一个bug,在ipad上的click事件无效,要两次click才可以,查了下资料,发现要兼容下,才可以。

$('.documeng').on('click touchstart',function (e) {
	//do something
});

这样才可以。

解决方案来自:stackoverflow

Updated at:

Released under the MIT License.