SPA里,

1) Router

改变router,不跳转页面方法:

hash, url: http://....../#/

Histroy Api: replaceState/popState

2) vuex

in view

store.state...

in Store:

State/commit/dispatch/mutation

 

 

1) vue plugins

2) render(h) //vue组件是响应式的,所以data发生改变, render会被调用, 通过H函数实现重新渲染。

3) vue.util, 。。生成响应式数据

new vue({.data..}) ..借鸡生蛋,生成响应式数据

4) es6 class语法

posted on 2020-06-02 07:34  connie313  阅读(120)  评论(0编辑  收藏  举报