摘要:
var arr = [1, 2, 3, 4, 5, 6,7,8,9,10];var calc = { sum: 0};function getSum(item, index, array) { this.sum += item; console.log(this.sum);}arr.forEach( 阅读全文
posted @ 2017-02-17 09:57
虞政博
阅读(3332)
评论(0)
推荐(0)
多学一点知识,就少写一行代码
2017年2月17日