提交fw.html新版
This commit is contained in:
parent
416b3d287a
commit
34dd311567
|
@ -42,9 +42,8 @@
|
||||||
<button type="submit">添加</button>
|
<button type="submit">添加</button>
|
||||||
<button type="button" id="del">删除</button>
|
<button type="button" id="del">删除</button>
|
||||||
</form>
|
</form>
|
||||||
<table class="balckTable back" width="350" align="center" border="1" cellspacing="0">
|
<table class="balckTable back" width="250" align="center" border="1" cellspacing="0">
|
||||||
<thead>
|
<thead>
|
||||||
<th>ID</th>
|
|
||||||
<th>ip地址</th>
|
<th>ip地址</th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="blackTableBody" align="center">
|
<tbody id="blackTableBody" align="center">
|
||||||
|
@ -59,12 +58,10 @@
|
||||||
data.forEach(rowData => {
|
data.forEach(rowData => {
|
||||||
let tr = document.createElement("tr");
|
let tr = document.createElement("tr");
|
||||||
let td1 = document.createElement("td");
|
let td1 = document.createElement("td");
|
||||||
let td2 = document.createElement("td");
|
|
||||||
|
|
||||||
td1.innerText = rowData.id;
|
td1.innerText = rowData.ip;
|
||||||
td2.innerText = rowData.ip;
|
|
||||||
|
|
||||||
tr.append(td1, td2);
|
tr.append(td1);
|
||||||
blackTableBody.append(tr);
|
blackTableBody.append(tr);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue