https://mydomain/news/?x=-75....
我希望在打开上面的网址的时候,自动跳到下面的网址。也就是说参数有一些变化。请问怎样做到?
https://mydomain/news/book/?l...
###JS 是肯定能做到的,其它不了解
const q = URLSearchParams(location.search)
q.set("lat", q.get("x")); q.delete("x")
q.set("lng", q.get("y")); q.delete("y")
location.href = "./book?" + q.toString()