楚江
楚江
> 另外我感觉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,里面有多级表头配置
>  大佬最后解决了吗,试了改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,...