easyui进度条

自己的项目遇到的 总结下:假的数据可以实现 具体进度还是要根据项目需求进行计算。

table列表:

<th dataoptions="field:'progress',width:120,halign:'center',formatter:showProcessBar "></th>

 

js实现:

function showProcessBar(value,row,index){

var htmlsrt=' <div class="progressbar-text" style="width:98px;">' +value+ '<div><div class="progress-value" style="width:'+value+';">&nbsp;</div>'

return htmlstr;

}

猜你喜欢

转载自blog.csdn.net/weixin_41175479/article/details/82454288