摘要: const camelizeRE = /-(\w)/g export function camelize (str) { str = String(str) return str.replace(camelizeRE, function (m, c) { return c ? c.toUpperCa 阅读全文
posted @ 2019-04-23 14:25 刘浩2561179983 阅读(256) 评论(0) 推荐(0) 编辑
摘要: function judgeTypeFnCreator (type) { const toString = Object.prototype.toString return function isType (o) { return toString.call(o) `[object ${type}] 阅读全文
posted @ 2019-04-23 14:20 刘浩2561179983 阅读(271) 评论(0) 推荐(0) 编辑
摘要: export const requestAnimationFrame = (() => { /* istanbul ignore next */ if (!inBrowser) { return noop } return window.requestAnimationFrame || /* ist 阅读全文
posted @ 2019-04-23 14:12 刘浩2561179983 阅读(380) 评论(0) 推荐(0) 编辑
摘要: import { createAddAPI } from '../util' const DATE_RE = /^(1|2)\d{3}[.\-/]\d{1,2}[.\-/]\d{1,2}$/ const types = { string: (val) => { return typeof val ' 阅读全文
posted @ 2019-04-23 14:03 刘浩2561179983 阅读(225) 评论(0) 推荐(0) 编辑