获取URL参数

const urlSearchParams = new URLSearchParams(window.location.search);
 
const params = Object.fromEntries(urlSearchParams.entries());
posted @ 2022-10-27 11:02  浪浪浪浪浪浪浪浪  阅读(24)  评论(0编辑  收藏  举报