摘要:
判断类型见:https://www.cnblogs.com/zhoulixue/p/17187385.html // 深拷贝 export const deepclone = (source: any) => { if (getType(source) 'Object') { return Obje 阅读全文
摘要:
获取类型 // 获取数据类型 export const getType = (o: any) => Object.prototype.toString.call(o).slice(8, -1); export const isObject = (o: any) => getType(o) 'Obje 阅读全文