camelcase 相关的软件列表

首页

从jQuery.camelCase()学习string.replace() 函数学习

2020-02-16 标签:jquery,camelcase,学习,string,replace,函数,功能,形如,background,color,转化,驼峰,表示,data,以及,涉及到,css

功能 camelCase函数的功能就是将形如background-color转化为驼峰表示法:backgroundColor。 此函数在jQuery的data函数,以及涉及到css的诸多函数中都有用到。 jQuery的实现 实现代码如下: //正则匹配 rdashAlpha = /-([a-z])/