📌  相关文章
📜  查找字符串 js 之间的区别 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:42.350000             🧑  作者: Mango

代码示例1
// Find Difference Between Two String
function findDiff(str1, str2){ 
  let diff= "";
  str2.split('').forEach(function(val, i){
    if (val != str1.charAt(i))
      diff += val ;         
  });
  return diff;
}