怎样不使用cookie取上一个页面的值

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33485463/article/details/76576370

使用参数将他们放到跳转的地址栏中,去选取
获取地址栏参数:window.location.search,使用split(“&”)和split(“=”)拆分成数组,放到数组中,有中文时,使用decodeURL()进行解码

这里写图片描述

猜你喜欢

转载自blog.csdn.net/qq_33485463/article/details/76576370