0
我正在使用marionettejs yeoman生成器 https://github.com/mrichard/generator-marionette 聲明應用程序根路徑和API端點等全局變量的最佳方式是什麼?在哪裏聲明marionettejs上的應用程序變量I
我正在使用marionettejs yeoman生成器 https://github.com/mrichard/generator-marionette 聲明應用程序根路徑和API端點等全局變量的最佳方式是什麼?在哪裏聲明marionettejs上的應用程序變量I
在應用程序本身聲明它們,或者創建一個Util模塊或其他東西。有很多方法可以做到這一點。
Communicator怎麼樣? – Petran