【发布时间】:2011-06-08 23:54:30
【问题描述】:
在 iPhone 模拟器上,ontouch 的事件回调似乎不起作用。
以下内容似乎不适用于我的模拟器:
document.ontouch = function() {
alert('it works!');
}
虽然这确实返回 true:
if ('ontouch' in document) {
alert('touch supported');
}
还有其他人遇到过这个问题吗?
【问题讨论】:
标签: javascript ios dom-events ios-simulator iphone-4