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.
设置 Marionette 应用程序时,通常会将区域添加到 Marionette.Application。有没有办法关闭 Marionette.Application 中的所有区域而不必知道它们的选择器?
您使用中removeRegions定义的方法RegionManager删除所有区域。要从 App 对象(的实例Marionette.Application)中删除它,请使用App._regionManager.removeRegions()
removeRegions
RegionManager
Marionette.Application
App._regionManager.removeRegions()