文件名称:virtualize-diff:在两个虚拟化节点之间创建差异
文件大小:4KB
文件格式:ZIP
更新时间:2024-07-08 17:28:42
JavaScript
虚拟化差异 在两个节点之间创建差异。 npm install virtualize-diff 用法 var node = require ( 'virtualize' ) . node ; var diff = require ( 'virtualize-diff' ) ; var left = node ( 'h1' , 'Hello World' ) ; var right = node ( 'h1' , 'Hello Pluto' ) ; var changes = diff ( left , right ) ; [{ " path " : " 0.0 " , " type " : " text.update " , " value " : " Hello Pluto " }]
【文件预览】:
virtualize-diff-master
----index.js(3KB)
----package.json(437B)
----test()
--------index.js(7KB)
----.gitignore(19B)
----Makefile(1KB)
----README.md(445B)