摘要: /** * 获取地址栏中url后面拼接的参数 * eg: * 浏览器地址栏中的地址:http://1.1.1.1/test.html?owner=2db08226-e2fa-426c-91a1-66e26f62c13f&view=pc * var param=location.search;//?owner=2db08226-e2fa-426c-91a1-66e26f62c13f... 阅读全文
posted @ 2019-05-27 16:46 Goatherd 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: /** * 两个数组取差集 * eg: * var arr1 = ["1","2","3","4"]; var arr2 = ["6","5","3","4"]; arr1.minus(arr2);--> 结果是:["1","2"] arr2.minus(arr1);--> 结果是:["6","5"] */ Array.prototype.min 阅读全文
posted @ 2019-05-27 16:17 Goatherd 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 获取ip 阅读全文
posted @ 2019-05-27 16:12 Goatherd 阅读(18209) 评论(0) 推荐(0) 编辑