问:js删除地址URL中全部参数
七娃博客
28 次
let hr = window.location.href; window.location.href = hr.split("?")[0];
注意:一定要加结束条件,否则页面一直处于刷新循环!
评论 | 0 条评论