|
|
@@ -381,7 +381,7 @@ export function titleCase(str) {
|
|
381
|
381
|
|
|
382
|
382
|
// 下划转驼峰
|
|
383
|
383
|
export function camelCase(str) {
|
|
384
|
|
- return str.replace(/-[a-z]/g, str1 => str1.substr(-1).toUpperCase())
|
|
|
384
|
+ return str.replace(/_[a-z]/g, str1 => str1.substr(-1).toUpperCase())
|
|
385
|
385
|
}
|
|
386
|
386
|
|
|
387
|
387
|
export function isNumberStr(str) {
|