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.
问题是我动态加载上下文菜单项并且加载需要时间,因此上下文菜单第一次出现默认值。但是如果你再次右键单击,你会看到加载的值。
有没有办法在菜单仍然打开时刷新项目?或者以某种方式重新加载它?
没有。您所能做的就是在菜单项显示之前对其进行设置。