-
获取到document,
var
doc = document.getElementById(
'mainFrame'
).contentDocument || document.frames[
'mainFrame'
].document;
-
添加触摸事件
-
doc.addEventListener('touchmove',function(event) { event.preventDefault(); },false);
转载于:https://my.oschina.net/qzzsunly/blog/658206