Angular Datatable >> 如何獲取總行數和所有金額值的總和。需要獲取表的總行數。我嘗試使用下表并僅獲取第一頁記錄。請建議我如何獲取get total number of records across all page以及需要獲取sum of the total records values. 我嘗試使用下面的代碼,getTotalAmount(){ let amountValues=""; let rowCount = $("table > tbody").children().length; console.log("rowCount ::: " + rowCount); for(var i=0;i<rowCount;i++){ if(this.persons[i].firstName === 'Superman' && this.persons[i].index != '') console.log(this.persons[i].index); amountValues += parseFloat(this.persons[i].enteredDebit); } console.log("amountValues >>>>>>>" + amountValues); }工作堆棧閃電戰
Angular Datatable >> 如何獲取總行數和所有金額值的總和
慕沐林林
2023-10-14 18:34:29