iScroll4 禁止select等页面元素默认事件的解决方法 起因在于 这一行,iSroll禁止了事件的默认行为,导致select,option,textarea等元素无法点击。 <pre prettyprint"="" style="margin-top: 0px; margin-bottom: 0px; margin-left: 22px; white-space: pre-wrap; word-wrap: break-word; font-size: 1em; padding: 0px;"> 解决方法也很简单,只需做一下判断,如下: onBeforeScrollStart : function(e){ var nodeType = e.explicitOriginalTarget ? e.explicitOriginalTarget.nodeName.toLowerCase() : (e.target ? e.target.nodeName.toLowerCase() : ''); if(nodeType != 'select' && nodeType != 'option' && nodeType != 'input' && nodeType != 'textarea'){ e.preventDefault(); } },