Home  >  Article  >  Web Front-end  >  Specific implementation of creating custom tables with JS_javascript skills

Specific implementation of creating custom tables with JS_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:00:381609browse

JS part:

Copy code The code is as follows:

function next() {
/ /Get table object
var oTable = document.getElementById("table1");
//Insert tr
var oTr = oTable.insertRow();
//Insert 3 td in one row of tr
var oTd1 = oTr.insertCell();
var oTd2 = oTr.insertCell();
var oTd3 = oTr.insertCell();
//Specify td content
oTd1.innerHTML = "@process_time displays the time required to process a page";
oTd2.innerHTML = "No need to set parameters";
oTd3.innerHTML = "No need to set parameter values";
}

JSP:
Copy code The code is as follows:








< ;/thead>

Parameter description

Contains this parameter

Parameter value

Statement:
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