晴明的博客园 GitHub      CodePen      CodeWars     
摘要: #cookie必须经过URL编码 #getCookie #setCookie #unsetCookie # #SubCookie # function getCookie(name) { var result = null; var myCookie = document.cookie + ";"; 阅读全文
posted @ 2016-01-21 15:25 晴明桑 阅读(136) 评论(0) 推荐(0) 编辑
摘要: window.addEventListener("copy", function(event){ console.log("copy"); event.preventDefault(); }); 阅读全文
posted @ 2016-01-21 14:28 晴明桑 阅读(138) 评论(0) 推荐(0) 编辑
摘要: "西瓜".charCodeAt(0); //35199"西瓜".charCodeAt(1); //29916String.fromCharCode(35199,29916) //西瓜 阅读全文
posted @ 2016-01-21 14:12 晴明桑 阅读(105) 评论(0) 推荐(0) 编辑