| 
 | 
 
测试用的是easyui官方提供的CRUD的demo 
 
在view中加载url: 
HTML复制代码     <table id="dg" title="My Users" class="easyui-datagrid" style="width:700px;height:250px"  url="<?php echo site_url('space/easyui');?>"              toolbar="#toolbar" pagination="true"   
            rownumbers="true" fitColumns="true" singleSelect="true">  
         <thead>  
            <tr>  
                <th field="firstname" width="50">First Name </th>  
                <th field="lastname" width="50">Last Name </th>  
                <th field="phone" width="50">Phone </th>  
                <th field="email" width="50">Email </th>  
            </tr>  复制代码 
无法加载后台的信息。用firebug查看有响应,是一串json格式的数据: 
{"id":"1","firstname":"11","lastname":"12","phone":"1233333","email":"1@1.com"} 
直接访问方法‘space/easyui’也是有响应的,也是{"id":"1","firstname":"11","lastname":"12","phone":"1233333","email":"1@1.com"} 
 
space控制器中的方法easyui() 
PHP复制代码                 public function easyui ()                {
                        $this->load->helper('url');
                        
                        
                        $data = array(
                        'id' =>'1',
                        'firstname' =>'11',
                        'lastname' => '12',
                        'phone' => '1233333',
                        'email' => '1@1.com'
                        );
                        $this->output->append_output(json_encode($data));
                }  复制代码 
 
通过firebug的分析可以知道后台的数据已经到达前台了。感觉成功已经近在咫尺,可是就是不知道问题在哪里。 
大侠给点建议,我应该从哪里找问题。 
 |   
 
 
 
 |