function shaowClone(obj) {
let shaowObj = {}
for (let i in obj) {
shaowObj[i] = obj[i]
}
console.log('hahahha')
return shaowObj
}
var obj1 = {
a: {
a1: { a2: 1 },
a10: { a11: 123, a111: { a1111: 123123 } }
},
b: 123,
c: "123"
}
const obj2 = shaowClone(obj1)
console.log(obj2)