1、【1.复制下面方法代码粘贴到你的js文件】/** 引入外部js文件* 使用示例: includeExJS("jquery-3.5.1.min.js");*/function includeExJS(jsFilepath){ var exJS = document.createElement('script'); exJS.src = jsFilepath; document.head.appendChild(exJS);}
2、【2.直接调用,引入外部js】includeExJS("jquery-3.5.1.min.js");
3、【3.实例】