javascript library for comparing objects
本问题已经有最佳答案,请猛点这里访问。
Possible Duplicate:
How do you determine equality for two JavaScript objects?
Object comparison in JavaScript
是否有任何JavaScript库可以帮助比较两个对象的等效性?所以如果我有类似的东西
1 2 | var obj1 = {"name":"Jeff","gender":"M","arrayprop":[1,2,3] }; var obj2 = {"name":"Jeff","gender":"M","arrayprop":[1,2,3] }; |
我希望obj1和obj2返回"equal",因为它们具有相同的属性/值。
显然,
有带函数