使用iScroll时,input等不能输入内容的解决方法
摘要:functionallowFormsInIscroll(){[].slice.call(document.querySelectorAll('input,select,button')).forEach(function(el){el.addEventListener(('ontouchstart'inwindow)?'touchstart':'mousedown',function(e){e.stopPropagation();})})}在需要清除事件绑定的地方,调用allowFormsInIscroll()方法,当然,是所有的
阅读全文
posted @ 2013-03-22 18:22


浙公网安备 33010602011771号