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);
 
 
 
 
 
 
 
posted @ 2020-02-15 20:02  web前端-张小七  阅读(707)  评论(0编辑  收藏  举报