9KB
Results
1
comments of
9KB
~~~js // 比较Object对象 function equalObject(obj1,obj2) { obj2 = {...obj2,...obj1} let lenObj1 = Object.getOwnPropertyNames(obj1).length let lenObj2 = Object.getOwnPropertyNames(obj2).length let isSameLen = lenObj1 == lenObj2 let strObj1 = JSON.stringify(obj1) let strObj2 =...