javascript - Windows Phone 7 Mango IE 中的触摸事件

标签 javascript internet-explorer windows-phone-7

WP7 Mango 中的 IE 是否支持 iOS 或 Android 等触摸事件?触摸事件似乎将成为 W3C 的标准:http://dvcs.w3.org/hg/webevents/raw-file/tip/touchevents.html . IE 9说它遵循标准,有谁知道它是否支持触摸事件?谢谢。

最佳答案

目前不支持触摸事件。您需要做的只是像这样简单的事情来证明它:

document.ontouchstart = function() { alert("TS"); }
document.ontouchmove = function() { alert("TM"); }
document.ontouchend = function() { alert("TE"); }

这些都不会在 IE9 移动版中触发。

关于javascript - Windows Phone 7 Mango IE 中的触摸事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7143008/

相关文章:

silverlight - silverlight:如何根据项目对象类型在列表框中显示不同的 View ?

windows-phone-7 - 在哪里查找 Windows Phone 应用程序 GUID

unit-testing - WP7 3层架构单元测试

javascript - 笑脸解析器和 xss 注入(inject)保护

javascript - 如何使用 html 和 javascript 将标记值(例如 gmail 到字段)作为字符串存储在变量中

internet-explorer - 强制使用 32 位 Internet Explorer ComObject

html - 至少与浏览器 IE 和 Firefox 不兼容

html - IE 8 - 9 条件样式表未触发

javascript - 添加动画以更改背景图像幻灯片

javascript - HTA - 如何在提交表单后关闭 HTA