动态加载啊td标签,根据后台数据ta显示不同背景

思路: 在拼接html 的时候, 需要变颜色的那个td  添加一个动态的class   例如   class=bgcolor+res.state 这样 就会  生成      bgcolor1   bgcolor0     给这两个类名定义不同的背景色           <style>             .swzt1{                 background: red;   
相关文章
相关标签/搜索