你能帮我描述一下吗?
var arr, total; arr = [1, 2, 3, 4, 5]; total = arr.reduce(function(previous, current) { return previous + current; }); // total is 15
javascript
javascript ×1