不拷贝原型链 function cloneDeep(obj, hasMap = new Map()) { if (typeof obj !== 'object' || obj === null) return obj if (obj instanceof Date) return new Date(obj) if (obj instanceof RegExp) return new RegExp(obj) if (typeof obj === 'object' && typeof document.getElementsByTagName === 'function') { <