English
Appearance
驼峰转为连线格式
该函数自带缓存,转换过的字符串会被缓存
hyphenate('myButton') // => my-button
首字母大写
首字母小写
将路径字符串转换为数组
a.b[c][0].d => ['a', 'b', 'c', '0', 'd'] [0].a => ['0', 'a'] a["b"]['c']['d"] => ['a', 'b', 'c', `'d"`] a[][b] => ['a', 'b'] a..b => ['a', 'b'] a[[b]]c => ['a', '[b]', 'c']