以上实例中,代码require('./hello') 引入了当前目录下的hello.js 文件(./ 为当前目录,node.js 默认后缀为js)。 Node.js 提供了exports 和require 两个对象,其中 ...
確定! 回上一頁