The equivalent code in Node.js/JavaScript would be: if (require.main === module) { // do something // or nothing }. Table of Contents.
確定! 回上一頁