function cssStyle2DomStyle(sName) { let arr = sName.split('-') let str = '' for (item of arr) { if (item != '') str += item[0].toUpperCase() + item.slice(1) } return str = str[0].toLowerCase() + str.slice(1) }
function cssStyle2DomStyle(sName) { let arr = sName.split('-') let str = '' for (item of arr) { if (item != '') str += item[0].toUpperCase() + item.slice(1) } return str = str[0].toLowerCase() + str.slice(1) }