jsdiff:JavaScript文字差异实现

时间:2021-02-27 07:37:50
【文件属性】:
文件名称:jsdiff:JavaScript文字差异实现
文件大小:201KB
文件格式:ZIP
更新时间:2021-02-27 07:37:50
JavaScript jsdiff JavaScript文字差异实现。 基于提出的算法。 安装 npm install diff --save 原料药 Diff.diffChars(oldStr, newStr[, options]) -比较两个文本块,逐个字符比较。 返回更改对象列表(请参见下文)。 选项 ignoreCase : true忽略大小写差异。 默认为false 。 Diff.diffWords(oldStr, newStr[, options]) - Diff.diffWords(oldStr, newStr[, options])两个文本块,逐字比较,忽略空格。 返回更改对象列表(请参见下文)。 选项 ignoreCase :与diffChars相同。 Diff.diffWordsWithSpace(oldStr, newStr[, options]) - Diff.diffW
【文件预览】:
jsdiff-master
----.travis.yml(541B)
----.eslintrc(4KB)
----.babelrc(168B)
----rollup.config.js(562B)
----images()
--------web_example.png(691B)
--------node_example.png(2KB)
----package.json(2KB)
----tasks()
--------version.js(565B)
----test()
--------.eslintrc(187B)
--------index.js(917B)
--------diff()
--------convert()
--------mocha.opts(36B)
--------patch()
----index.html(3KB)
----LICENSE(2KB)
----CONTRIBUTING.md(1KB)
----Gruntfile.js(4KB)
----src()
--------index.js(2KB)
--------diff()
--------convert()
--------patch()
--------util()
----.npmignore(202B)
----examples()
--------web_example.html(730B)
--------node_example.js(375B)
----release-notes.md(17KB)
----.gitignore(68B)
----components()
--------component.json(246B)
--------bower.json(114B)
----runtime.js(67B)
----karma.conf.js(1KB)
----README.md(9KB)
----yarn.lock(355KB)
----style.css(1KB)

网友评论