Node js模塊化開發(fā) b文件訪問a文件中的數(shù)據(jù),需要用exports方法對(duì)a文件中的數(shù)據(jù)進(jìn)行導(dǎo)出(exports.data = data),然后在b文件中用require...
IP屬地:澳門
Node js模塊化開發(fā) b文件訪問a文件中的數(shù)據(jù),需要用exports方法對(duì)a文件中的數(shù)據(jù)進(jìn)行導(dǎo)出(exports.data = data),然后在b文件中用require...