摘要:
判断类型见:https://www.cnblogs.com/zhoulixue/p/17187385.html // 深拷贝 export const deepclone = (source: any) => { if (getType(source) 'Object') { return Obje 阅读全文
posted @ 2023-03-07 11:15
zhoulixue
阅读(24)
评论(0)
推荐(0)
摘要:
获取类型 // 获取数据类型 export const getType = (o: any) => Object.prototype.toString.call(o).slice(8, -1); export const isObject = (o: any) => getType(o) 'Obje 阅读全文
posted @ 2023-03-07 11:12
zhoulixue
阅读(28)
评论(0)
推荐(0)

浙公网安备 33010602011771号