1 Star 0 Fork 0

Baboon-lagou / fed-e-task-03-01

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Part 3 · Vue.js 框架源码与进阶

本阶段围绕当下国内最主流的前端核心框架 Vue.js 展开,深入框架内部,通过解读源码或者手写实现的方式,剖析 Vue.js 框架的内部实现原理,让你做到知其所以然。同时我们还会介绍 Vue.js 的进阶用法、周边生态以及性能优化,让你轻松应对更加复杂的项目业务需求。

fed-e-task-03-01

手写 Vue Router、手写响应式实现、虚拟 DOM 和 Diff 算法

首先回顾 Vue Router 的基本使用,以及 Hash 模式和 History 模式的区别,然后自己手写一个实现基 History 模式的前端路由,了解路由内部实现的原理;

接下来在数据响应式实现原理分析中,自己动手一个简易版本的 Vue;

最后掌握虚拟 DOM 的作用,通过一个虚拟 DOM 库 Snabbdom 真正了解什么是虚拟 DOM,以及 Diff 算法的实现和 key 的作用。

练习题

MIT License Copyright (c) 2021 Baboon狒狒 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

手写 Vue Router、手写响应式实现、虚拟 DOM 和 Diff 算法相关内容 展开 收起
JavaScript 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/Baboon-lagou/fed-e-task-03-01.git
git@gitee.com:Baboon-lagou/fed-e-task-03-01.git
Baboon-lagou
fed-e-task-03-01
fed-e-task-03-01
master

搜索帮助