1、vue文件的 script 内
方式一:var config1 = require("../../utils/config.js");
方式二:/*import md5 from "@/common/SDK/md5.min.js"; */
调用:
config1.sss();
config.js 必须要有导出:
module.exports = {
httpGet:httpGet,
httpPost:httpPost,
shows:shows
}
1、vue文件的 script 内
方式一:var config1 = require("../../utils/config.js");
方式二:/*import md5 from "@/common/SDK/md5.min.js"; */
调用:
config1.sss();
config.js 必须要有导出:
module.exports = {
httpGet:httpGet,
httpPost:httpPost,
shows:shows
}