标签:
var arr = [1,3,2,7,5,9,11];
function sum(arr){
var total = 0;
var fun = function(arrs){
if(arrs.length > 0){
total += arrs.pop();
fun(arrs);
}
}
fun(arr);
return total;
}
标签:
原文地址:http://www.cnblogs.com/dxa304814183/p/5571980.html