根据API对于 element.execCommand() 函数,它表示它具有三个参数:aCommandName、aShowDefaultUI、aValueArgument。
API 对第一个和第三个参数的描述非常清楚,但我不确定第二个参数的含义。
API 是这么说的:
aShowDefaultUI: A Boolean indicating whether the default user interface should be shown. This is not implemented in Mozilla.
“默认用户界面”指的是什么?
作为引用,我正在使用 element.execCommand() 创建我自己的 WYSIWYG 网络文本编辑器,它只需要在 Google Chrome 中工作。
最佳答案
一般没用
第二个参数源自旧的 IE。前任。当 createLink 中的 true
时,IE 会显示一个弹出窗口,让用户输入链接的协议(protocol)和 URL。 Edge、FF 和 Chrome 似乎没有对这个参数做任何事情。
转自@Teemu评论区
关于javascript - element.execCommand()中的aShowDefaultUI参数引用的 'the default user interface'是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38188015/