function count(str) {
let obj = {}
str.split('').forEach(item=>{
if(obj[item]){
obj[item]++
}else{
obj[item] = 1
}
})
return obj
}



京公网安备 11010502036488号