![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
huobing123456789
思想和战略的重要性无与伦比
展开
-
常用js代码片段
function getURLParameter(name) { return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null; } var原创 2016-04-06 14:16:40 · 684 阅读 · 0 评论 -
js实现复制到粘贴板 ZeroClipboard
1、下载 ZeroClipboard.min.js 和 ZeroClipboard.swf 或下载此二文件的压缩包 或去官方下载。 2、引入js库。 3、html代码。 复制链接 其中id用于js选择器使用,data-clipboard-text用于保存你要粘贴的内容。此处"zhan-tie-nei-rong"为例。 4、JS代码原创 2016-03-27 16:18:35 · 4091 阅读 · 1 评论