如何判断两个node是同一个实例。

通过node 的__instanceId来判断吗?

if (nodeA == nodeB) 就行吧?

是的,建议用三等于 if (nodeA === nodeB)