$(function(){ $.ajax({ type:'post', url:'/prdeft-web/appDeviceCard/getDeviceLists', data:{'sgId':1724}, success:function(result){ /* alert("hello word"); */ var table_device_html=""; for(var i=0;i<result.length;i++){ table_device_html=table_device_html +'<tr><td>'+'<input type="checkbox" />' +'</td><td>'+result[i].deviceCode +'</td><td>'+result[i].deviceName +'</td><td>'+result[i].deviceProperty +'</td><td>'+result[i].state +'</td><td>' +'</td><td>' +'</td><td>' +'</td><td>' +'</td></tr>' } $("#table_device_html").html(table_device_html); }, error:function(){ alert("error"); } }) })
$,ajxa动态获取数据表格显示
最新推荐文章于 2021-08-06 13:35:42 发布