摘要: 1.arguments.callee //经典的阶乘(递归)函数 function factorial(num) { if (num <= 1) { return 1; } else { ... 阅读全文
posted @ 2014-11-14 17:12 yellowshorts 阅读(3855) 评论(0) 推荐(0) 编辑
摘要: function createComparisonFunction(propertyName) { return function (object1, object2) { var value1 = object1[property... 阅读全文
posted @ 2014-11-14 16:33 yellowshorts 阅读(10857) 评论(1) 推荐(0) 编辑