将“连字符字符串”转化为驼峰字符串
一:实现代码:var camelizeRE = /-(\w)/g;function camelize(str){ return str.replace(camelizeRE,function(_,c){ return c ? c.toUpperCase():''; })}camelize('kkk-zzz-hhh'); kkkZzzHzz;二: 实...