HBCMS更多的中文手册参考:

queryCommandEnabled Method

DHTML文档教程

Returns a Boolean value that indicates whether a specified command can be successfully executed using execcommand, given the current state of the document.

dhtml语法

benabled = object.querycommandenabled(scmdid)

parameters

sCmdID Required. Stringthat specifies a command identifier.

return value

boolean that returns one of the following possible values:

truethe command is enabled.
falsethe command is disabled.

remarks

using querycommandenabled ("delete") on a textrange object returns true, while querycommandenabled ("delete") on a document object returns false. however, execcommand ("delete") can still be used to delete the selected text.

是否符合公共标准

There is no public standard that applies to this method.

Applies To

document, controlRange, TextRange

更多语法参考

execcommand, querycommandindeterm, querycommandstate, querycommandsupported, queryCommandValue