下面这段代码在IE 中可用, 可是在谷歌浏览器中用不了。有没有办法解决啊。
window.clipboardData.setData("Text",location.href)
window.clipboardData.setData("Text",location.href)
解决方案 »
- javamail
- 菜鸟求助! javascript 能否 给html文档中的html 元素 添加 继承? 就象 String.prototype ?
- 高高手请帮忙: 请问如何在js里面写关闭一个网页, 得到关闭网页的确切时间.
- Image怎么没有prototype
- 新手求救
- VML 矢量图形怎么转化为jpg文件?急等
- 这个函数为什么Mozilla无法正常调用?
- 急急急,</font><font id="singInFont" color="#FF0000" onClick="changeAttribute(<%=charCLHJ%>)" style="cursor:hand" >怎么清除属性
- 要怎样做才可以使到 tree.jsp 中的 getTreePath 传到 deeptree.css 中去?
- 数字相加减的问题 SOS!!!!
- 一个脚本问题
- javascript error对象有哪些属性
$.copy(varStr) // 把变量varStr的值复制到剪贴板
$("#elmID").copy() // 复制id为elmID的节点里的文字
$("#elmID input").copy() // 复制id为elmID的节点下所有input的值
$("#elmID input").copy("|") // 复制id为elmID的节点下所有input的值,并以“|”隔开就这么简单,方便,兼容。