url 链接跳转传参数

1.new URL(location.href).searchParams.get('applyNo');
 
// localStorage.setItem('ajaxBaseUrl', 'http://30.40.55.32:8413');
 
2. 存在history
const objHistory = { current, pageSize, startTime, endTime, timeType, surgeryType, orderType, orderKey };
 window.history.pushState(objHistory, 'surgrn-Fee');
取hisltory    console.log('123', window.history.state);
 
 
 
 
 
 
 
原文地址:https://www.cnblogs.com/web-zxq/p/12313376.html