js中數組對象自定義排序

<!DOCTYPE html> <html> <script> var data = [{name:"zachary", age:28}, {name:"nicholas", age:29}]; function f1(name){ return function(o1,o2){ var value1 = o1[name]; var value2 = o2[name]; if
相關文章
相關標籤/搜索