循环遍历,根据条件给页面渲染值
for (var index in res.data) {
var item=res.data[index];
if (item.LastFollowDay<0) {
$("tr[data-index='" + index + "']").attr({"style":"color:red","font-weigth":"bold"})
}else if(item.Status!="有效"){
$("tr[data-index='" + index + "']").attr({"style":"color:gray","font-weigth":"bold"})
}
else if(item.Status=="预计有效"){
$("tr[data-index='" + index + "']").attr({"style":"color:black","font-weigth":"bold"})
}
}