function cssStyle2DomStyle(sName) {
// 填写JavaScript
const reg = /[a-z]+/g
const arr = sName.match(reg)
let newArr = []
newArr.push(arr[0])
for(let i=1; i<arr.length; i++) {
const res = arr[i].charAt(0).toUpperCase() + arr[i].slice(1)
newArr.push(res)
}
return newArr.join('')
}

京公网安备 11010502036488号