vue-router与react-router-dom的push与replace都是跳转路由的方法 区别: push方法是在history栈里添加跳转的页面地址; replace方法则是替换掉history栈当前地址为要跳转的地址,跳转前的地址将无法使用goback返回,以为在history栈中已经不存在了