The execCommand() method is deprecated. Do NOT use it.
The applets property returns an empty HTMLCollection in all new browsers.
The <applet> element is not supported in HTML5.
document.execCommand(
command,
showUI,
value)
Parameter | Description |
command | The name of the command to execute: "backColor" "bold" "createLink" "copy" "cut" "defaultParagraphSeparator" "delete" "fontName" "fontSize" "foreColor" "formatBlock" "forwardDelete" "insertHorizontalRule" "insertHTML" "insertImage" "insertLineBreak" "insertOrderedList" "insertParagraph" "insertText" "insertUnorderedList" "justifyCenter" "justifyFull" "justifyLeft" "justifyRight" "outdent" "paste" "redo" "selectAll" "strikethrough" "styleWithCss" "subscript" "superscript" "undo" "unlink" "useCSS" |
showUI | A Boolean. Specifies if the UI should be shown or not. |
value | Some commands need a value to be completed. |
Type | Description |
Boolean | true if the command is supported, otherwise false . |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!