js does not refresh the page to replace the parameters in the url address bar

js does not refresh the page to replace the parameters in the url address bar

It turns out that the address bar is like this


if (window.history){
                    // 支持History API
                    history.replaceState(null,"",'/#/bkqy/resultQuery')
                }

Will become like this (without refreshing the page)

Guess you like

Origin blog.csdn.net/qq706352062/article/details/108627133