> For the complete documentation index, see [llms.txt](https://shenjunhong.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shenjunhong.gitbook.io/blog/yuan-ma/vue.md).

# vue

- [vue2](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2.md)
- [vm.attrs与$listeners](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/attrs-yu-listeners.md)
- [vue 和 react 的 diff 算法比较](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-he-react-de-diff-suan-fa-bi-jiao.md)
- [vue 源码分析](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-data.md)
- [vue 优化的 diff 策略](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-diff.md)
- [extends](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-extends.md)
- [核心原理篇](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-is.md)
- [keep-alive](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-keepalive.md)
- [vue 源码分析之 mixins](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-minxins.md)
- [vue 源码分析之 nextTick](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-nexttick.md)
- [vue之slot](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-slot.md)
- [vnode](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-vnode.md)
- [vue 源码分析之 watch](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-watch.md)
- [原理](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-props.md)
- [vue 源码分析之transition](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-transition.md)
- [vue 源码分析之异步组件](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-yi-bu-zu-jian.md)
- [调用的是 watch](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-ji-suan-yu-zhen-ting.md)
- [安装](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vuex-yuan-li.md)
- [react源码分析之portals](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-zhi-method.md)
- [event 的实现原理(事件的实现原理)](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-event.md)
- [什么是h](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhihhan-shu.md)
- [分析provide 和 inject](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-provider-he-inject.md)
- [vue 源码分析之 use](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-use.md)
- [v-model](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-vmodel.md)
- [vue源码分析之vuex](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-vuex.md)
- [响应式原理](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-shen-ru-xiang-ying-shi-yuan-li.md)
- [初始化的流程](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-zu-jian-hua.md)
- [组件更新](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-zu-jian-geng-xin.md)
- [编译](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-fen-xi-zhi-bian-yi.md)
- [父子组件生命周期](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-yuan-ma-jie-xi-zhi-fu-zi-zu-jian-sheng-ming-zhou-qi.md)
- [原理](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-de-scoped-yang-shi.md)
- [多实例](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-de-duo-shi-li.md)
- [Vue 面试](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-mian-shi-de-fu-xi.md)
- [源码研读一](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/vue-xiang-mu-pei-he-shi-yong-canvas-lian-dong.md)
- [响应式原理](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/xiang-ying-shi-yuan-li.md)
- [常见问题](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/chang-jian-wen-ti.md)
- [数组的劫持](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/shu-zu-jie-chi-yu-xiang-ying-shi.md)
- [vue之自定义指令](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/zi-ji-ding-yi-de-zhi-ling.md)
- [运行机制全局概览](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue2/yun-xing-ji-zhi-quan-ju-gai-lan.md)
- [vue3相比vue2的提升点](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue3-xiang-bi-vue2-de-ti-sheng-dian.md)
- [vue composition api](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue3-xiang-bi-vue2-de-ti-sheng-dian/vue3-he-vue2-de-qu-bie.md)
- [vue3的虚拟dom优化](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue3-xiang-bi-vue2-de-ti-sheng-dian/vue3-ceng-mian-dui-dom-jin-xing-de-you-hua.md)
- [vue3层面的双向数据绑定](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue3-xiang-bi-vue2-de-ti-sheng-dian/vue3-ceng-mian-de-shuang-xiang-shu-ju-bang-ding.md)
- [预处理优化](https://shenjunhong.gitbook.io/blog/yuan-ma/vue/vue3-xiang-bi-vue2-de-ti-sheng-dian/vue3-de-diff-fang-shi-dui-bi.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://shenjunhong.gitbook.io/blog/yuan-ma/vue.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
