//获取Cookie function getCookie(cname){ let name = cname + "="; let ca = document.cookie.split(';'); for(let i=0; i 0; --i) result += str[Math.floor(Math.random() * str.length)]; return result; } //取随机数字 function randomnum(length) { let str = '0123456789'; let result = ''; for (let i = length; i > 0; --i) result += str[Math.floor(Math.random() * str.length)]; return result; } //取Get参数 top:取最顶端的 function _GET(letiable,top = false){ let query = top ? window.top.location.search.substring(1) : window.location.search.substring(1); let lets = query.split("&"); for (let i=0;i