CodePudding user response:
For example//traversal data
The function eachData (list) {
$(' # comTable td). The parent (), remove ()
If (list. Length & gt; 0 {
List. The forEach (function (e) {
Var d='
Var t="& lt; Tr gid="+ e.I D +" & gt;
$(' # comTable tbody '). Append (t)
})
} else {
$(' # comTable). Append (" & lt; tr>
}
}
- Related
- Links:
- CodePudding