📜  在 js 中创建大元素 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:09.634000             🧑  作者: Mango

代码示例1
var tableElementContainer1 = document.getElementById("employeeListContainer1"),
    temptableHolder  = '';
        for(var i=0,len=testData.length; i';
            }
    temptableHolder += '
First NameLast NameTitleIDDepartment
' + testData[i].lastName + '' + testData[i].title + '' + testData[i].id + '' + testData[i].department + '
'; tableElementContainer1.innerHTML = temptableHolder ;