easyui propertyGrid

来源:互联网 发布:多路访问网络协议 编辑:程序博客网 时间:2024/05/17 10:05

jQuery EasyUI 修改 propertygrid列名

if($.fn.propertygrid){$.fn.propertygrid.defaults.columns[0][0].title = "<span style="color: #ff0000;">属性名</span>"; // 对应Name$.fn.propertygrid.defaults.columns[0][1].title = "<span style="color: #ff0000;">属性值</span>"; // 对应Value}


清空表格:

$('#pg').propertygrid('loadData', { total: 0, rows: [] });


js遍历对象

for(var i in man){        if (man.hasOwnProperty(i)) { //filter,只输出man的私有属性            console.log(i,":",man[i]);        };    }



原创粉丝点击