replace 与push的区别在于,replace的跳转的页面不会被记录路由记录中,在使用$route.go(),更方便! 在使用replace未生效的原因: (1) replace是作用在本页的路由的 (例如从home页跳转到index页,使用了$route.replace(’/index’),那么home页将不会记录在路由历史中!!!)