突出显示两个字符串之间的差异

时间:2019-07-04 09:24:19

标签: javascript jquery

var old = "The quick brown fox jumped over the lazy dog";
var new  = "The quick white rabbit jumped over the lazy dog";

我想要这样的结果

  

快速的棕色 狐狸跳过了懒狗
  快速的白色 兔子跳过了懒狗

0 个答案:

没有答案