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.
我有疑问我可以为一个集合制作更多视图吗?示例:我有餐厅菜单,有主菜单和饮料菜单,所以当我点击主菜单时,会有每一项,当我点击喝酒时,只有过滤的项目,与食物菜单相同,下一个......是这个权利 ?不会有碰撞吗?
感谢您的回答
是的,您可以从多个视图访问集合,因为视图应该只读取集合。假设您在显示 DrinkMenuView 时从 DOM 中隐藏 MainMenuView,则不会发生冲突。或者,您可以有一个菜单视图并在菜单视图中添加逻辑以进行过滤。