时间: 2021-07-31 作者:daque
差不离菜单的功效都不妨用此吩咐实行。executes a command on the current document, current selection, or the given range.syntaxbsuccess = object.execcommand(scommand [, buserinterface] [, vvalue])parametersscommand required. string that specifies the command to execute. this command can be any of the command identifiers that can be executed in script. buserinterface optional. boolean that specifies one of the following values: false default. does not display a user interface. true displays a user interface, if the command supports one. vvalue optional. variant that specifies the string, number, or other value to assign. possible values depend on scommand . return valueboolean that returns one of the following values:true the command was successful. false the command was not successful. remarksdo not invoke the execcommand method until after the page loads.the buserinterface and vvalue parameters may be required depending on the command being executed.standards informationthere is no public standard that applies to this method. applies to