camelize() -> string
将一个用横线分隔的字符串转换为 Camel 形式。如 'foo-bar' 将被转换为 'fooBar'。
'foo-bar'
'fooBar'
Prototype 在内部使用这个方法将 CSS 属性转换为它们等价的 DOM 的 style 属性。
style
'background-color'.camelize(); // -> 'backgroundColor' '-moz-binding'.camelize(); // -> 'MozBinding'