摘要: window.alert = function(name){ var iframe = document.createElement("IFRAME"); iframe.style.display="none"; iframe.setAttribute("src", 'data:text/plain 阅读全文
posted @ 2017-05-25 17:03 崔凯通 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: 1.可以给document的touchmove事件禁止掉就行了 1 2 3 document.querySelector('body').addEventListener('touchmove', function(e) { e.preventDefault(); }) 1 2 3 document 阅读全文
posted @ 2017-05-25 17:00 崔凯通 阅读(9399) 评论(0) 推荐(2) 编辑
摘要: 在iOS上 点击事件不能触发在看起来不像能点的元素。解决办法有两种:一种是让它看起来可以点,也就是加上所谓鼠标手*{cursor:pointer;}还有一种在调试时发现,如果某个元素的点击事件被声明,也可以打上所谓的点击标记。哪怕空函数。类似:this.getDOMNode().onclick =f 阅读全文
posted @ 2017-05-25 16:55 崔凯通 阅读(362) 评论(0) 推荐(0) 编辑