新增三种import方式
第一种
import data from "data:text/javascript,export default 'hello world'"
第二种(绝对定位)
import data from "file://C:/AppData/Flash Player"
第三种(网路加载,处于试验阶段,个人觉得属于未来趋势)
import moduleA from "https://immoc-dev.oubaobao.xyz/test/moduleA.js";
console.log(moduleA.a + 1);
要进行配置webpack的配置,给域名添加白名单