我想在Meteor中创建一个应用程序,从我理解它首先加载到子目录中的手册,然后按照字母顺序.我的文件结构是这样的......
/server
/lib
/client
/lib
game.js -> already starts declaring the function "makeBoard(){}"
/template.js -> where the function "makeBoard()" is called.
Run Code Online (Sandbox Code Playgroud)
因此看起来错误函数"makeBoard()"不存在,只有当我在我想要调用它的同一文件中声明时才有效.即使我将文件"game.js"移动到"template.js"所在的目录,也会发生这种情况.我应该如何正确引用Meteor上不同文件中的资源?