//document.write(unescape("%3Cscript src='/js/vue3.2.36.js'%3E%3C/script%3E")); // 报警告,用createElement代替write, 但报 Vue is not defined jsdiv = document.getElementById('site_js') s2 = document.createElement('script'); s2.src = '/js/vue3.2.36.js' jsdiv.appendChild(s2); 用document.write 只是警告,但create 则让其它vue不能工作,很o疼 更优解决方法,待后续,学习中探索