let params = window.location.pathname.split('/')[4]; console.log(params);
【js】获取URL的地址,并且获取分隔符/的值
最新推荐文章于 2024-05-06 16:57:36 发布
let params = window.location.pathname.split('/')[4]; console.log(params);