//传值 //1、 module.exports.name = "aaa"; //2、 exports.name = "bbb"; //3、可以多个传值 module.exports= { name:"zhangsan" } //另一个js接收传值 let comml = require("路径"); alert(comml.name);
node.js传值
猜你喜欢
转载自www.cnblogs.com/skyhorseyk/p/9100442.html
今日推荐
周排行