export const GetQueryString=(name)=> { return decodeURIComponent((new RegExp(‘[?|&]‘ + name + ‘=‘ + ‘([^&;]+?)(&|#|;|$)‘).exec(location.href) || [, ""])[1].replace(/\+/g, ‘%20‘)) || null }
js获取链接参数
原文:https://www.cnblogs.com/xym0710/p/14888821.html