部分版本uc瀏覽器(開發(fā)版11.1.0.870)下history.pushState進去的數(shù)據(jù),無法使用history.state獲取到alert(1111111111);//正常彈出history.pushState({key: 2222222222},'','');
alert(history.state.key);//報錯嘗試了其他瀏覽器火狐、chrome、華為自帶瀏覽器,微信內(nèi)置瀏覽器,都正常uc瀏覽器更新11.2.0.880版本也正常
history.pushState兼容問題
手掌心
2018-08-27 13:31:08