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.
单击文本区域时,有没有办法跟踪右键单击菜单。
我想知道用户是否选择了剪切、复制、粘贴、全选。另外,我可以通过检测鼠标右键来知道菜单何时可见......但我怎么知道它何时关闭?
谢谢你。
您可能会发现这很有用。
AFAIK,你不能。但是您可以将默认菜单替换为您可以完全控制的自定义菜单。查看这个使用 dojo 工具包构建的示例。