摘要:
function arrQC(arr){ let temp = []; arr.forEach((item,idx)=>{ if(temp.indexOf(item)<0){ temp.push(item) } }) return temp; } 阅读全文
摘要:
function validateStr(val){ let obj = {}; let maxNum = -1; let maxStr; for(let i=0;imaxNum){ maxNum = obj[val[i]]; maxStr = val[i]; } ... 阅读全文