jqgrid

来源:互联网 发布:通用数据库管理系统 编辑:程序博客网 时间:2024/04/26 15:47
jQuery("#grid_id").jqGrid({...   colModel: [      ...      {name:'price', index:'price', width:60, align:"center", editable: true, formatter:imageFormat, unformat:imageUnFormat},      ...   ]...});   function imageFormat( cellvalue, options, rowObject ){    return '</pre><img src="'+cellvalue+'" alt="" /><pre>';}function imageUnFormat( cellvalue, options, cell){    return $('img', cell).attr('src');}
0 0
原创粉丝点击