下载依赖代码:diff-match-patch
changeArray: function (str1, str2) {
if(str1===undefined || str2 === undefined){
return
}
var dmp = new diff_match_patch();
dmp.Diff_Timeout = 0;
var d = dmp.diff_main(str1, str2, false);
return dmp.diff_prettyHtml(d);
}