go(-1): 原頁面表單中的內容會丟失;
this.$router.go(-1):后退+刷新;
this.$router.go(0):刷新;
this.$router.go(1) :前進
back(): 原頁表表單中的內容會保留;
this.$router.back():后退 ;
this.$router.back(0) 刷新;
this.$router.back(1):前進
this.$router.go(0):刷新;
this.$router.go(1) :前進
this.$router.back():后退 ;
this.$router.back(0) 刷新;
this.$router.back(1):前進
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。