阅读背景:

使用iscroll后,input等不能输入内容的解决办法

来源:互联网 
在iscroll.js文件中加入如下代码
function allowFormsInIscroll(){
 [].slice.call(document.querySelectorAll('input, select, button')).forEach(function(el){
 el.addEventListener(('ontouchstart' in window)?'touchstart':'mousedown', function(e){
 e.stopPropagation();
 
 })
 })
 }
 document.addEventListener('DOMContentLoaded', allowFormsInIscroll, false);function allowFormsInIs



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: