尽管我导入了包含我将使用的函数的JS文件,但Node.JS表示它未定义。Express.JS无法识别所需的js文件的功能
require('./game_core.js');
Users/dasdasd/Developer/optionalassignment/games.js:28
thegame.gamecore = new game_core(thegame);
^
ReferenceError: game_core is not defined
你知道有什么问题吗? Game_core包括功能:
var game_core = function(game_instance){....};