部分版本uc浏览器(开发版11.1.0.870)下
history.pushState进去的数据,无法使用history.state获取到
alert(1111111111);//正常弹出
history.pushState({key: 2222222222},'','');
alert(history.state.key);//报错
尝试了其他浏览器火狐、chrome、华为自带浏览器,微信内置浏览器,都正常
uc浏览器更新11.2.0.880版本也正常
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
认证高级PHP讲师