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?
光阴似箭催人老,日月如移越少年。
First take out a=1&b=2, and then process the string
First take out a=1&b=2, and then process the string