var s = decodeURIComponent((new RegExp('[?|&]userid=([^&;]+?)(&|#|;|$)').exec(location.href || [''])[1].replace('/\+/g','%20'))||null); console.log(s); 相关文章: 2022-12-23 2021-10-19 2022-12-23 2022-12-23 2022-12-23 2021-12-09 2021-11-20 2021-07-23