const url = window.location;
const arr = url.pathname.split(’/’);
arr.pop();
let changeUrl = ‘#/invite-new/invitation?inviteLaunchId=’ + this.newInviteTeamId +"&activityProductId=" + this.activityProductId
arr.push(changeUrl);
const newUrl = url.origin + arr.join(’/’);
history.pushState(’’, ‘’, newUrl); // 不刷新页面
改变url地址不刷新页面js
最新推荐文章于 2024-04-14 12:00:00 发布