javascript - history.replaceState() cannot change query parameters
大家讲道理
大家讲道理 2017-06-24 09:43:54
0
1
1011

If the url is http://xxx.com?a=1&b=2, you need to change the value of the a parameter to 2 through history.repalceState(), but b remains unchanged. How to deal with it?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
刘奇

First take out a=1&b=2, and then process the string

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template