【vue】牛客专题训练02

1. v-for

【vue】牛客专题训练02_第1张图片

2. SPA(单页面应用程序)优缺

【vue】牛客专题训练02_第2张图片

3. vue&react

【vue】牛客专题训练02_第3张图片

4. watch

【vue】牛客专题训练02_第4张图片
vue无法监听数组变化的情况
但是数组在下面两种情况下无法监听

利用索引直接设置数组项时,例如arr[indexofitem]=newValue
修改数组的长度时,例如arr.length=newLength
Vue无法检测property的添加或移除。由于Vue会在初始化实例时对property执行getter/setter转化,所以property必须在data对象上存在才能让Vue将它转换为响应式的

5. 虚拟DOM

【vue】牛客专题训练02_第5张图片

6. 客户端渲染&服务器端渲染

【vue】牛客专题训练02_第6张图片

7. 视图更新

【vue】牛客专题训练02_第7张图片

8. 钩子函数

【vue】牛客专题训练02_第8张图片

9.路由模式

【vue】牛客专题训练02_第9张图片

你可能感兴趣的:(#,vue,vue.js,javascript,前端)