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.
如果我有一堆菜单链接,每个链接都包含一个要加载到中心内容窗格中的小部件名称,并且每个链接都有一个自定义小部件怎么办?我可以只将一次点击事件绑定到所有菜单链接,然后有点 EVAL 小部件名称并加载它吗?或者我是否必须将每个小部件名称加载到相应的菜单链接点击事件中?