而如果 a 经过webpack打包,则很有可能不会暴露全局变量,此时就需要使用imports-loader来对 a 进行导入。 使用. todo:例子. require('imports?$=jquery!./example.js'); ...
確定! 回上一頁