[js函数] storageManager
摘要:import _get from 'lodash.get'; import _set from 'lodash.set'; import _debounce from 'lodash.debounce'; import {shallowEqual} from "./shallow-equal"; c
阅读全文
posted @
2023-02-16 19:25
袜子破了
阅读(65)
推荐(0)
[js函数] shallowEqual
摘要:const isBasicType = (t: any) => { return t "number" || t "string" || t "boolean" || t 'undefined';}/** * 数组和对象都能比较 * @param a * @param b * @returns {b
阅读全文
posted @
2023-02-16 19:23
袜子破了
阅读(77)
推荐(0)
dom-utils
摘要:function isNil(obj:any): boolean { return typeof obj "undefined" || obj null;}function fixCls(clsStr: string): string { if (!clsStr) { return ""; } le
阅读全文
posted @
2023-02-11 14:22
袜子破了
阅读(29)
推荐(0)