if (condition) {//Distinguish between wireless clients and limited clients based on the value of InterfaceType var table = document.getElementById("wifi_clients_table"); var newRow = table.insertRow(); //Create a new row
var newCell1 = newRow.insertCell(0); //Create a new cell newCell1.innerHTML = "
1
" ; //Content within the cell newCell1.setAttribute("align","center"); //Set the position
var newCell2 = newRow.insertCell(1); //Create a new cell newCell2.innerHTML = "
" info.LANHosts.HostName "
"; newCell2.setAttribute(" align","center"); //Set the position
var newCell3 = newRow.insertCell(2); //Create a new cell newCell3.innerHTML = "
" info.LANHosts .IPAddress "
"; newCell3.setAttribute("align","center"); //Set the position
var newCell4 = newRow.insertCell(3); //Create a new Cell newCell4.innerHTML = "
" info.LANHosts.MACAddress "
"; newCell4.setAttribute("align","center"); //Set position
var newCell5 = newRow.insertCell(4); //Create a new cell newCell5.innerHTML = "
" info.LANHosts.UpRate "/" info.LANHosts.DownRate "kb td>"; newCell5.setAttribute("align","center"); //Set the position
}
Delete: Clear when the page is closed, next time Regenerate when accessing to prevent tr from incrementing each time and causing page confusion
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn