Discuss / JavaScript / 也许

也许

Topic source
function string2int(s) {
return arr.map(function(x){return x[0].toUpperCase() + x.slice(1).toLowerCase();});
}

复制错了。。

function normalize(arr) {
return arr.map(function(x){return x[0].toUpperCase() + x.slice(1).toLowerCase();});
}

  • 1

Reply