![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
MD-coder
不写BUG的程序员不是好程序员
展开
-
js 读取所有cookie
var strCookie = document.cookie; var arrCookie = strCookie.split("; "); for(var i = 0; i < arrCookie.length; i++){ var arr = arrCookie[i].split("=...原创 2019-10-16 20:56:38 · 4476 阅读 · 0 评论 -
兼容手机和pc的copy代码
function copyArticle(event) { const range = document.createRange(); range.selectNode(document.getElementById('cdk')); const selection = window.getSelection(); if(s...原创 2018-12-11 19:52:36 · 478 阅读 · 0 评论