HBCMS更多的中文手册参考:

queryCommandState Method

DHTML文档教程

Returns a Boolean value that indicates the current state of the command.

dhtml语法

bDone = object.queryCommandState(sCmdID)

Parameters

sCmdID Required. Stringthat specifies a command identifier.

return value

boolean that returns one of the following possible values:

truethe given command has been executed on the object.
falsethe given command has not been executed on the object.

是否符合公共标准

There is no public standard that applies to this method.

Applies To

document, controlRange, TextRange

更多语法参考

execcommand, querycommandenabled, querycommandindeterm, querycommandsupported, queryCommandValue