本代码取之:1.4.3版本(才开始有)

 


var rdashAlpha =  /-([a-z])/ig,

      fcameCase = function(all,letter){
            return letter.toUpperCase();
      };


camelCase:function(string){

     return string.replace(rdashAlpha,fcamelCase);

}


 

 

    看一下执行流程:

 

  



$.camelCase("font-weight");