hello.js function say(name){ console.log('hello,' + name); } function mk(name){ console.log('I want to make love with ' + name); } module.exports = { say : say, mk : mk } main.js var you = require('./hello.js'); you.say('廖学峰'); you.mk('廖学峰');
胸带,你这样廖老师会同意吗,哈哈哈
廖老师表示口味有点重
Sign in to make a reply
懐秋
hello.js function say(name){ console.log('hello,' + name); } function mk(name){ console.log('I want to make love with ' + name); } module.exports = { say : say, mk : mk } main.js var you = require('./hello.js'); you.say('廖学峰'); you.mk('廖学峰');