摘要: 使用 module.exports 来导出模块(导出的只能是对象或函数) module.exports = { abc: abc, fn: fn } 导入自己定义的js文件,必须加 ./ // 导入模块(基本上和之前加载模块一样) const bbb = require('./bbb.js'); / 阅读全文
posted @ 2020-04-27 23:02 star-meteor 阅读(192) 评论(0) 推荐(0) 编辑
摘要: proxyTable: { '/api': { target: 'http://baidu.com', pathRewrite: { '^/api': '' } 阅读全文
posted @ 2020-04-27 13:28 star-meteor 阅读(100) 评论(0) 推荐(0) 编辑