原生JS使用window.location进行传参 页面一 发送 location.href='./addUpdate.html?pageName=添加' 页面二 接受 console.log(decodeURI(location.search.split('=')[1]));