常常用到,因此記錄一下,刷新方法不少,用過這三個,因此只記錄這三個,後面遇到在更新。javascript
第一種html
this.$router.go(0);
第二種java
location.href = "javascript:history.go(0);";
第三種ide
window.location.reload();
第一種和第二種,只支持安卓和PCpost
第三種支持安卓、IOS、PC都支持,因此推薦第三種。this
原文圍觀地址 http://www.sharedblog.cn/post/218.htmlcode
我的博客http://sharedblog.cn/router
軟件下載http://iqzhan.com/htm