MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / addRowAbove

Function addRowAbove

notes.js:285–292  ·  view source on GitHub ↗
(table, rowIndex)

Source from the content-addressed store, hash-verified

283
284 // 表格操作函数
285 function addRowAbove(table, rowIndex) {
286 const newRow = table.insertRow(rowIndex);
287 const colCount = table.rows[0].children.length;
288 for (let i = 0; i < colCount; i++) {
289 const cell = newRow.insertCell();
290 cell.style.cssText = 'padding: 12px; border: 1px solid #e5e7eb; color: #374151; min-height: 20px;';
291 }
292 }
293
294 function addRowBelow(table, rowIndex) {
295 const newRow = table.insertRow(rowIndex + 1);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected