Vue virtual DOM / diff algorithm

vue efficient core, is a virtual dom and diff algorithms, vue not modify dom to achieve the effect of modifying the tree, but that element directly on the page, then this element is a virtual dom . So vue how to change it? By diff algorithm to calculate the virtual dom revised differences and before the amendment, then the virtual dom be modified based on the original, so the efficiency is greatly enhanced.

 

 

Guess you like

Origin www.cnblogs.com/Tractors/p/11094251.html