1. 程式人生 > >求助mini ui datagrid資料不顯示問題

求助mini ui datagrid資料不顯示問題

html頁面如下

 <div property="columns">
                <div type="indexcolumn" ></div>
                <div field="scoreid" width="120" headerAlign="center" allowSort="true">scoreid</div>    
                <div field="studentid" width="120" headerAlign="center" allowSort="true">studentid</div>                            
                <div field="classes" width="120" headerAlign="center" allowSort="true">classes</div>                            
                <div field="collegeid" width="120" headerAlign="center" allowSort="true">collegeid</div>                            
                <div field="sex" width="100" allowSort="true">sex</div>                                    
                <div field="name" width="100" allowSort="true">name</div>
                <div field="id" width="100" allowSort="true">id</div>
                <div field="courseid" width="100" headerAlign="center" allowSort="true">courseid</div>                
          </div>

後臺返回的資料json串如下:
{
	"data": [{
		"scoreid": 100,
		"studentid": 123,
		"classes": "22",
		"collegeid": 54,
		"sex": "nv",
		"name": "gg",
		"id": 1,
		"courseid": 2
	}, {
		"scoreid": 100,
		"studentid": 123,
		"classes": "22",
		"collegeid": 54,
		"sex": "nv",
		"name": "gg",
		"id": 2,
		"courseid": 2
	}]
}
json串 用格式化工具校驗是正確的,控制檯沒有提示錯誤資訊 。不知道錯在了哪裡,按理說不應該返回正確格式的資料,控制元件會自動將資料填充到裡面麼,估計還是資料的問題。望路過的高人能指點一下。謝謝啦