<input type="button" value="selectAll" onclick="selectAll();"></body><script type="text/javascript">
function copy(){ document.execCommand("copy",false,null);
} function selectAll(){ document.execCommand("selectAll",false,null);
} function open(){ document.execCommand("open",false,null);
} function saveAs(){ document.execCommand("saveAs",false,null);
} function print(){ document.execCommand("print",false,null);
}</script>上面代碼是我直接復制過來的,在別人博客上就是可以運行的,比如全選就可以??墒菑椭频轿冶镜仉娔Xhtml文件上,啥也不行,所有的命令一個都不行.....也上傳到服務器過,還是不行...這是人品問題嗎