日期:2014-05-16  浏览次数:20506 次

为什么ligerui无法接收URL的数据,直接给Data赋值就可以
Html代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>   
     <script src="../lib/jquery/jquery-1.5.2.min.js" type="text/javascript"></script>
     <script src="../lib/ligerUI/js/ligerui.min.js" type="text/javascript"></script>
     <link href="../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
     <link href="../lib/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
     <link href="../lib/ligerUI/skins/Gray/css/all.css" rel="stylesheet" type="text/css" /> 
     <script type="text/javascript" >
//         var jsonObj = {};
//         jsonObj.Rows=[
//                 {"Id":"1001","Name":"张三","Pwd":"1234"},
//                 { "Id": "1002", "Name": "张三1", "Pwd": "1234" },
//                 { "Id": "1003", "Name": "张三2", "Pwd": "1234" }
//                 ];
         function itemclick(item) {alert(item.text);}
         $(document).ready(function () {
             window['g'] = $("#maingrid").ligerGrid({
                 height: '100%',
                 columns: [
                 { display: '编号', name: 'Id', align: 'center', width: 100 },
                 {display:'姓名',name:'Name',minWidth:120},
                 {display:'密码',name:'Pwd',minWidth:100}
               ],
//                                  data: jsonObj,
                 url: "../HanderPost/userInfo.ashx",
                 pageSize:10,rowNumbers:true,
                 toolbar:{
                 ite