欢迎光临
我们一直在努力

没什么,就是document的一个方法而已,语法见内

建站超值云服务器,限时71元/月

差不多菜单的功能都可以用此命令实现。
executes a command on the current document, current selection, or the given range.

syntax

bsuccess = object.execcommand(scommand [, buserinterface] [, vvalue])
parameters

scommand 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 value

boolean that returns one of the following values:

true the command was successful.
false the command was not successful.

remarks

do 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 information

there is no public standard that applies to this method.

applies to

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 没什么,就是document的一个方法而已,语法见内
分享到: 更多 (0)

相关推荐

  • 暂无文章