舉例來說,當require package 的時候,Node.js 會根據 package.json 裡設定的 main 來決定路徑,所以不管副檔名是什麼都無所謂,只要內容是CommonJS ...
確定! 回上一頁