引入: //计算两个数字的和 function f1(x, y) { return x + y; } //计算三个数字的和 function f2(x, y, z) { return x + y + z; } //计算四个数字的和 function f3(x, y, z, k) { return x + y + z + k; } //计算五个数字的和 function f4(a, b, c, d, e) { return a + b + c + d + e; } //计算六个数字的和 funct
function isObjectValueEqual(a, b) { var aProps = Object.getOwnPropertyNames(a); var bProps = Object.getOwnPropertyNames(b); if (aProps.length != bProps.length) { return false; } for (var i = 0; i < aProps.length; i++) { var propName = aProps[i]; if (
function isObjectValueEqual(a, b) { if(typeof a == 'number' && typeof b == 'number'){ return a == b } var aProps = Object.getOwnPropertyNames(a); var bProps = Object.getOwnPropertyNames(b); if (aProps.length != bProps.length) { return false; } for