config.json');. 或者(可以省略文件扩展名): var config = require('./config');. 注意 require 是同步的并且只读取文件一旦,以下调用将从缓存返回结果
確定! 回上一頁