var str = navigator.userAgent.toLowerCase() var ver = str.match(/cpu iphone os (.*?) like mac os/) if (!ver) { //非IOS系统 if ('addEventListener' in document) { document.addEventListener('DOMContentLoaded', function() { FastClick.attach(document.body); }, false); } } else { if (parseInt(ver[1]) < 11) { if ('addEventListener' in document) { document.addEventListener('DOMContentLoaded', function() { FastClick.attach(document.body); }, false); } } } if (!window.Promise) { document.write('