使用iScroll时,input等不能输入内容的解决方法
function allowFormsInIscroll(){
[].slice.call(document.querySelectorAll('input, select, button')).forEach(function(el){ el.addEventListener(('ontouchstart' in window)?'touchstart':'mousedown', function(e){ e.stopPropagation(); }) }) }在需要清除事件绑定的地方,调用allowFormsInIscroll()方法,当然,是所有的。也可以是选择性的


浙公网安备 33010602011771号