使用 JavaScript 统计并返回 str1 中出现在 str2 中的字符数