Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用javascript在android上获取history.pushState后的url_Android_Url_Pushstate - Fatal编程技术网

使用javascript在android上获取history.pushState后的url

使用javascript在android上获取history.pushState后的url,android,url,pushstate,Android,Url,Pushstate,我的网页使用ajax加载数据,如果加载了页面,我会使用window.history.pushState更改url,但在android上更改window.location.href后,仍然会返回我以前的链接(链接在url栏上更改)。在桌面浏览器上运行良好。有没有办法解决这个问题?对于那些想知道的人来说,这是一个bug: 一种解决方法是手动跟踪您所做的操作

我的网页使用ajax加载数据,如果加载了页面,我会使用window.history.pushState更改url,但在android上更改window.location.href后,仍然会返回我以前的链接(链接在url栏上更改)。在桌面浏览器上运行良好。有没有办法解决这个问题?

对于那些想知道的人来说,这是一个bug:

一种解决方法是手动跟踪您所做的操作