commom/utils.js
//暴露对象
const version = "1.0.0"
function getVersion() {
return "getVersion:1.0.0"
}
module.exports = {
version,
getVersion
}
//js对象引入
let {version,getVersion} = require("../../common/utils.js");
console.log(version);
debugger