复制代码 代码如下:
disableSelection(document.body)//disabletextselectiononentirebodyofpage
varsomediv=document.getElementById("mydiv")
disableSelection(somediv)//disabletextselectionwithinDIVwithid="mydiv"
varalltables=document.getElementsByTagName("table")
for(vari=0;i
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]