03 2013 档案

使用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 esdesign 阅读(162) 评论(0) 推荐(0)