function dynamicLoad(){ var doc = document.getElementsByTagName('head') ; var script = document.createElement('script'); script.setAttribute('type','text/javascript'); script.setAttribute('src','assets/jquery-1.8.3.min.js'); doc.appendChild(script); script.onload = script.onreadystatechange = function(){ console.log(this.readyState) if(!this.readyState||this.readyState=='loaded'||this.readyState=='complete') script.onload = script.onreadystatechange = null; } }
尝试清理一下这个应用的数据,然后在重新进入一下
怀疑是应用缓存导致的