js函数里for循环得到的值得怎么分别相加这样:function getsum(){数组求和函数Array.prototype.sum = function(){var sum = 0for(var i = 0i<this.lengthi++){su2023-03-05JavaScript260