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
阅读patch.js源代码的时候发现这句代码:
if (staticNodeList[index] === node.childNodes[index]) { // maybe have been removed for inserting node.removeChild(node.childNodes[index]) }
不是很理解, 因为此代码上面做了数组转化赋值:
var staticNodeList = _.toArray(node.childNodes)
不太明白这个条件判断是为啥?
The text was updated successfully, but these errors were encountered:
childNodes 是动态的, 添加删除节点会发生改变
Sorry, something went wrong.
好的,谢谢!
No branches or pull requests
阅读patch.js源代码的时候发现这句代码:
不是很理解,
因为此代码上面做了数组转化赋值:
不太明白这个条件判断是为啥?
The text was updated successfully, but these errors were encountered: