摘要:
function createComparisonFunction(propertyName) { return function(obj1, obj2) { var value1 = obj1.getAttribute(propertyName), value2 = obj2.getAttribute(propertyName); if (value1 value2) { return 1; } else { return 0; } }}可用于排序的比较函数 阅读全文
posted @ 2014-04-02 10:00
好 孩 子
阅读(187)
评论(0)
推荐(0)

浙公网安备 33010602011771号