题目:编程实现查找两个字符串的最大公共子串 示例:“aocdfe"和"pmcdfa"最大公共子串为"cdf” 注:最大公共子串有不止一个时,只输出第一个最大子串 代码 function findLongestCommonStr(str1, str2) { let commonStr = '', L1 = str1.length, L2 = str2.length