我在js文件中有这段代码
var tbl_html = '<table class="table table-condensed grid" width="350px" border="1">' +
'<thead>';
var tbl_html_processing = '<table class="table table-condensed" width="150px" border="1">' +
'<thead>';
tbl_html = tbl_html + '<tr><th width="300px" nowrap="yes" ><center>ProductionDate</br></center></th>' +
'<th width="250px" nowrap="yes" ><center>Processing StartTime</center></th>' +
'<th width="250px" nowrap="yes" ><center>Processing EndTime</center></th>' +
'<th width="250px" ><center>Processing TotalTime</center></th></tr>' +
'</thead>';
tbl_html = tbl_html + '<tbody>' +
'<td>' + yearconvert(yearr) + '</td>' +
'<td>' + st_time_formated + st_time_am_pm + '</td>' +
'<td>' + ed_time_formated + ed_time_am_pm + '</td>' +
'<td>' + dur_time_formated + '</td>';
数据按顺序提取,但我想将最后一行作为第一行翻转,其他行将相应地跟随
这是当前的一个
我想使用html解决此问题,将id添加到'td'标签并进行转换。 有什么想法吗?