转换为驼峰命名法
const f = (str) => {
return str.replace( /[-\w\]/g, m => m.slice(1).toUpperCase()
}str.replace(regexp|substr, newSubstr|function)最后更新于
const f = (str) => {
return str.replace( /[-\w\]/g, m => m.slice(1).toUpperCase()
}str.replace(regexp|substr, newSubstr|function)最后更新于