摘要: webpack默认打包之后的代码形式是这样的(假设我导出 module.exports = 'hello world' ) (function () { return 'hello world' })() 注意:代码是一个自执行函数,外界想获取函数里面的返回值怎么办(也就是模块的导出结果 hello 阅读全文
posted @ 2020-07-24 08:56 h2z 阅读(581) 评论(0) 推荐(0) 编辑