We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
examples/sort-tabel.html 每次点击之后都会生成一些新的元素,不符合预期。 原始的: 点击后: 这是因为 listDiff 产生的diffs 里的 moves 表示要将user5插入到index 0,将index = 1元素删除(也就是user1),将user1插入到index4
而这段代码中: 只插入了节点user5,没有删除节点user5
MDN中说insertBofore如果是已有DOM中的引用会调整位置,而不需要删除,这里没有起效果
The text was updated successfully, but these errors were encountered:
No branches or pull requests
examples/sort-tabel.html 每次点击之后都会生成一些新的元素,不符合预期。
原始的:
点击后:
这是因为 listDiff 产生的diffs 里的 moves 表示要将user5插入到index 0,将index = 1元素删除(也就是user1),将user1插入到index4
而这段代码中:
只插入了节点user5,没有删除节点user5
MDN中说insertBofore如果是已有DOM中的引用会调整位置,而不需要删除,这里没有起效果
The text was updated successfully, but these errors were encountered: