var str='border-left-color';str=str.replace(/-[a-z]/ig,function(s){ return s.charAt(1).toUpperCase();});alert(str);
posted on 2015-03-03 09:36 wish&will 阅读(102) 评论(0) 编辑 收藏 举报