jQuery easyui 结合ThinkPHP使用,关于读取数据显示问题
原来项目写了一个EasyUI类,里面写了一个datagrig()方法
public function _datagrid($tag) {
$id = !empty($tag['id']) ? $tag['id'] : strtolower(CONTROLLER_NAME.'_'.ACTION_NAME.'_datagrid');
$style = !empty($tag['style']) ? $tag['style'] : '';
//默认参数
$dataOptions = array(
'border' => false,
'fit' => true,
'fitColumns' => true,
'rownumbers' => true,
'singleSelect' => true,
'pagination' => true,
'pageList' => array(20,30,50,80,100),
'pageSize' => cookie('pagesize') ? cookie('pagesize') : C('DATAGRID_PAGE_SIZE'),
);
$options = $tag['options'] ? $this->autoBuildVar($tag['options']) : 'array()';
$fields = $tag['fields'] ? $this->autoBuildVar($tag['fields']) : 'null';
$parseStr = '
".$key." | ";endforeach;endif; ?>';
---|