- 授权协议: BSD
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/kpdecker/jsdiff
- 软件文档: https://github.com/kpdecker/jsdiff.git
- 官方下载: https://github.com/kpdecker/jsdiff.git
软件介绍
Jsdiff是一款实现javascript文本差分的软件。
安装:
npm install diff
或者
bower install jsdiff
API
JsDiff.diffChars(oldStr, newStr[, options])- diffs two blocks of text, comparing character by character.Returns a list of change objects (See below).
JsDiff.diffWords(oldStr, newStr[, options])- diffs two blocks of text, comparing word by word, ignoring whitespace.Returns a list of change objects (See below).
JsDiff.diffWordsWithSpace(oldStr, newStr[, options])- diffs two blocks of text, comparing word by word, treating whitespace as significant.Returns a list of change objects (See below).
JsDiff.diffLines(oldStr, newStr[, options])- diffs two blocks of text, comparing line by line.
选择:
ignoreWhitespace:trueto ignore leading and trailing whitespace. This is the same asdiffTrimmedLinesnewlineIsToken:trueto treat newline characters as separate tokens. This allows for changes to the newline structure to occur independently of the line content and to be treated as such. In general this is the more humandly form of
diffLinesanddiffLinesis better suited for patches and other computer friendly output.
兼容性:
Jsdiff支持所有ES3环境和IE8以下一些已知问题。这些浏览器存在一些差异算法,如文字diff和其他可能由于缺乏拆分操作捕获组支持的失败操作。
数学建模(原书第5版)
[美] Frank R. Giordano、[美] William P.Fox、[美] Steven B.Horton / 叶其孝、姜启源 / 机械工业出版社 / 2014-10-1 / 99.00元
《华章数学译丛:数学建模(原书第5版)》旨在指导学生初步掌握数学建模的思想和方法,共分两大部分:离散建模和连续建模,通过本书的学习,学生将有机会在创造性模型和经验模型的构建、模型分析以及模型研究方面进行实践,增强解决问题的能力。 《华章数学译丛:数学建模(原书第5版)》对于用到的数学知识力求深入浅出,涉及的应用领域相当广泛,适合作为高等院校相关专业的数学建模教材和参考书,也可作为参加国内外数......一起来看看 《数学建模(原书第5版)》 这本书的介绍吧!
