会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
我就尝一口
博客园
首页
新随笔
联系
订阅
管理
2021年8月5日
虚拟DOM和diff算法 ——— 手写 h 函数
摘要: h 函数支持以下写法,此次手写 h 函数,只支持后面 3 种写法(低配版) 文件结构: vnode.js // 函数的功能非常简单,就是透传参数 export default function (sel, data, children, text, elm) { return { sel, data
阅读全文
posted @ 2021-08-05 07:22 我就尝一口
阅读(244)
评论(1)
推荐(0)
编辑
公告