export function getUrlParam(name) {
const thisReg = new RegExp(`(^|&)${ name }=([^&]*)(&|$)`, 'i');
const r = window.location.search.substr(1).match(thisReg);
if (r != null) {
return decodeURIComponent(r[2]);
}
return null;
};
获取地址栏携带的参数
最新推荐文章于 2023-11-02 15:36:41 发布