摘要:
const camelizeRE = /-(\w)/g export function camelize (str) { str = String(str) return str.replace(camelizeRE, function (m, c) { return c ? c.toUpperCa 阅读全文
摘要:
function judgeTypeFnCreator (type) { const toString = Object.prototype.toString return function isType (o) { return toString.call(o) `[object ${type}] 阅读全文
摘要:
export const requestAnimationFrame = (() => { /* istanbul ignore next */ if (!inBrowser) { return noop } return window.requestAnimationFrame || /* ist 阅读全文
摘要:
import { createAddAPI } from '../util' const DATE_RE = /^(1|2)\d{3}[.\-/]\d{1,2}[.\-/]\d{1,2}$/ const types = { string: (val) => { return typeof val ' 阅读全文