document.execCommand是什么语法,在js书里document好像只有getElementById(),writeln(),close(),open()等函数
没看到有execCommand()函数的,而且我在网上看到得一些用法如:
<input type=button value=剪切 onclick=document.execCommand('Cut')>
<input type=button value=拷贝 onclick=document.execCommand('Copy')>
<input type=button value=粘贴 onclick=document.execCommand('Paste')>
<input type=button value=撤消 onclick=document.execCommand('Undo')>
好像都不起作用,是浏览器的关系吗?怎么才能生效呢?
自己没多少分数,还请热心人帮忙回答