啊鑫
7 天以前 fca192d3c38c5dcfbb6ace8bc71d6078f6a079b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"use strict";
 
exports.__esModule = true;
exports.camelize = camelize;
exports.padZero = padZero;
var camelizeRE = /-(\w)/g;
 
function camelize(str) {
  return str.replace(camelizeRE, function (_, c) {
    return c.toUpperCase();
  });
}
 
function padZero(num, targetLength) {
  if (targetLength === void 0) {
    targetLength = 2;
  }
 
  var str = num + '';
 
  while (str.length < targetLength) {
    str = '0' + str;
  }
 
  return str;
}