标签:style blog color io re c
function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }
JS 获取url参数,布布扣,bubuko.com
JS 获取url参数
原文地址:http://www.cnblogs.com/allvie/p/3862529.html