update function power

This commit is contained in:
joseph le 2023-11-17 08:37:39 +07:00
parent beec8ad2a1
commit 10d1bb5bed
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ const { addLogFunction } = require("./addLogFunctionJS");
// Lặp qua từng hàng và lấy nội dung của các cột (thẻ <td>) trong hàng
const data = [];
rows.forEach((row) => {
const columns = Array.from(row.querySelectorAll("td")); // Lựa chọn tất cả các cột (thẻ <td>) trong hàng
const rowData = columns.map((column) => column.textContent.trim()); // Lấy nội dung của các cột và xóa khoảng trắng