此代码适用于大多数 android/chrome 移动浏览器:
document.body.addEventListener('touchend', function (e) {
//alert(1);
window.open("http://test.com");
}, false)
但它不工作iOS/Safari (tested with iPhone OS 9_2, AppleWebKit 601.1.46, Safari/601.1).
是否有任何解决方法可以显示此事件的新窗口/标签?
"alert(1)"
工作正常,所以我想事件正常触发。
谢谢你。