When using JSON for front and back interaction, if it is a list, you can pass Value[index], (index indicates subscript)
1 //Loading News2 functionJzxw () {3 $.ajax ({4Type: ' POST ',5DataType: ' JSON ',//JSON Object6URL: ' Order1!show1.action ',7Data:NULL,8Success:function(response, status, XHR) {9 vars = "";Ten$.each (Response,function(Index, value) { One //Combination As + = ' <tr><td> ' +value[1]; -s + = ' </td><td> ' + value[2] -+ ' </td><td> ' + value[3] the+ ' </td><td> ' + value[4] -+ ' </td><td> ' -s + = ' <a class= "btn btn-info" onclick= "Scxw (' +value[0]+ ') ' > Audited </a> '; -s + = ' </td></tr> '; + }) - //$ (s). InsertAfter ("#xwmain tr"); + //$ ("#xwmain tr"). First (). After (). empty; A //$ ("#xwmain tr"). First (). after (s); at$ ("#table_id tbody"). HTML (s); - }, -Error:function() { -Alert ("Load Failed"); - } - in }) - to}
When using Ajax to pass a list to the front and back, use value[] to get the value