本文为vue-router原理学习,并非源码解读,学完后对阅读 VueRouter (opens new window) 源码会有所帮助。本文示例代码地址 github (opens new window)