摘要: 在 Node.js 中,创建一个模块非常简单,如下我们创建一个 main.js 文件,代码如下: var hello = require('./hello'); hello.world(); 以上实例中,代码 require('./hello') 引入了当前目录下的 hello.js 文件(./ 为 阅读全文
posted @ 2020-09-03 09:30 遐迩66 阅读(87) 评论(0) 推荐(0) 编辑