Node.jsNode.js-函数调用和模块引用(require) 一、函数调用 nodejs实质就是js,因此函数调用和js无差别 写一个函数 function hello(msg){ console.log(msg); } //调用 hello("hello world!"); //控制台输出 hello worl... 9年前 (2017-03-17) 2090℃ 3评论 2喜欢