摘要:
使用 module.exports 来导出模块(导出的只能是对象或函数) module.exports = { abc: abc, fn: fn } 导入自己定义的js文件,必须加 ./ // 导入模块(基本上和之前加载模块一样) const bbb = require('./bbb.js'); / 阅读全文
摘要:
proxyTable: { '/api': { target: 'http://baidu.com', pathRewrite: { '^/api': '' } 阅读全文