let params = new URLSearchParams(location.search);
let code = params.get('code');
api链接
https://developer.mozilla.org/zh-CN/docs/Web/API/URLSearchParams/get
let params = new URLSearchParams(location.search);
let code = params.get('code');
api链接
https://developer.mozilla.org/zh-CN/docs/Web/API/URLSearchParams/get
本文标题:获取浏览器url参数方法
本文链接:https://www.haomeiwen.com/subject/xuglkctx.html
网友评论