📅  最后修改于: 2022-03-11 15:04:25.438000             🧑  作者: Mango
function capitalize(s,arr){
s = s.split("");
for(var i = 0; i < arr.length; i++){
if (s[arr[i]] == null) { continue }
s[arr[i]]=s[arr[i]].toUpperCase();
}
s = s.join('');
return s;
};