楚江

Results 5 comments of 楚江

> 另外我感觉Set应该用Map实现比较好吧 使用map的话,js的对象在遍历时是无序的,Set的规范里要求要按add的顺序来遍历

``` const arr = [1, 2, [3, 4, [5, 6]]] Array.prototype._flat = function (depth = Infinity) { --depth return this.reduce((prev, curr) => { if(Array.isArray(curr) && depth >= 0) { prev...

貌似只有升级处理,目前主干版本新增了一个table2,里面有多级表头配置

> ![1736410074957](https://github.com/user-attachments/assets/51d11cf0-23a4-4cbe-bd85-f64b0703ef82) 大佬最后解决了吗,试了改css伪类没效果

``` function render(vnode) { const { tag, attrs = {}, children } = vnode // 开始通过vnode去创建dom const el = document.createElement(String(tag).toLocaleLowerCase()) // 处理 attrs for (const key in attrs) { el.setAttribute(key,...