js 不刷新页面替换url地址栏里面的参数

js 不刷新页面替换url地址栏里面的参数

原来地址栏是这样


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

就会变成这样(没有刷新页面)

猜你喜欢

转载自blog.csdn.net/qq706352062/article/details/108627133