摘要: /*获取当前页面链接中的参数*/ function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).matc 阅读全文
posted @ 2020-04-13 11:54 铜丝儿 阅读(2033) 评论(0) 推荐(0)
摘要: /*随机获取颜色*/ function getRandomColor() { var r = Math.floor(Math.random() * 256); var g = Math.floor(Math.random() * 256); var b = Math.floor(Math.rando 阅读全文
posted @ 2020-04-13 11:49 铜丝儿 阅读(2011) 评论(0) 推荐(0)