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.
我正在使用 marionettejs yeoman 生成器 https://github.com/mrichard/generator-marionette 声明应用程序根路径和 API 端点等全局变量的最佳方法是什么?
在应用程序本身上声明它们,或者创建一个 Util 模块或其他东西。有很多方法可以做到这一点。