Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么在 BoilerplateJS 项目中的两个位置定义 main.js?似乎只使用了项目根目录中定义的那个,而不使用 app 目录中定义的那个。有人可以澄清一下。提前致谢。
我有同样的想法,并认为其他人也会。使用顶层的 main.js。我认为您在应用程序子目录(app/main.js)中引用的副本似乎没有被使用,并且可能是开发遗留下来的。在同一个目录中是 app/application.js,它基本上是相同的,并且是从父 main.js 开始的。