求陣列平均值

王東煜發表於2019-09-21
Array.prototype.average = function(){
    //this 要操作的陣列
    var t = eval(this,join('+'))/this.length;
}
複製程式碼

相關文章