Populate html table on jQuery success event

后端 未结 4 547
囚心锁ツ
囚心锁ツ 2020-12-31 10:27

Here\'s my problem.

I have this html table:

')
}

提交回复
热议问题
4条回答
  •  别那么骄傲
    2020-12-31 11:04

    Try this:

    for (var i = 0; i < len; i++) {
       var username = data[i].username;
       var name  = data[i].name;
       var lastname = data[i].lastname;
       $('#table tbody').append('
'+username+''+name+''+lastname+'