javascript 引用文件
javascript 引用文件
// config.js
const path = require('path');
path_dir = path.resolve('./')
var config = {
'config_getcwd_path':path_dir
};
module.exports.config = config;
引用文件
const config_config = require('./config.js');
console.log(config_config)