<span style="font-size:32px;">function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return decodeURI(r[2]); return null;
}</span>
获取URL参数
最新推荐文章于 2023-06-28 16:24:53 发布