jQuery MiniUI

标题: 没有定义clone属性错误 [打印本页]

作者: yingjacy    时间: 2015-1-29 15:15:10     标题: 没有定义clone属性错误

页面报错:Cannot read property 'clone' of undefined
前台代码:<div id="datagrid1" class="mini-datagrid" style="width:700px;height:250px;"
                                  url="/WeiXinPMP/userManagerAction"   allowResize="true"
                                  sizeList="[20,30,50,100]" pageSize="20">
                                  <div property="columns">
                                  <div field="username" width="120" headerAlign="center" allowSort="true">姓名</div>   
                               </div>
后台代码: public String queryAllUser(){
                             this.users = "{total:\"1\",data:[{\"username\":\"wangchao\"}]}";
                             return SUCCESS;  
                 }
主要通过struts2返回users字符串。
为什么报这个错?那里有问题?
求解决!!!!!!!!!!!

作者: factory    时间: 2015-1-29 15:51:43

json数据不要自己拼, 自己非常容易出错. 自己写map,list,再通过后台json类转为字符串,再返回. 参考示例后台




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2