Javascript Microsoft JScript运行时错误:对象不存在';t支持属性或方法';jqGrid';

Javascript Microsoft JScript运行时错误:对象不存在';t支持属性或方法';jqGrid';,javascript,jquery,asp.net-mvc-4,jqgrid,Javascript,Jquery,Asp.net Mvc 4,Jqgrid,在尝试将数据从sqldatabase加载到jqgrid时,在调试代码时,错误弹出窗口显示 “Microsoft JScript运行时错误:对象不支持属性或方法'jqGrid',并且未将数据加载到jqGrid中。” <html> <head> <title></title> <link href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"

在尝试将数据从sqldatabase加载到jqgrid时,在调试代码时,错误弹出窗口显示

“Microsoft JScript运行时错误:对象不支持属性或方法'jqGrid',并且未将数据加载到jqGrid中。”

<html>
<head>
    <title></title>
    <link href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/jquery.jqGrid/ui.jqgrid.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-2.0.2.min.js" type="text/javascript"></script>
    <script src="../../Scripts/i18n/grid.locale-en.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.jqGrid.min.js" type="text/javascript"></script>
    <script src="../../Scripts/knockout-2.2.1.js" type="text/javascript"></script>
    <script src="../../Scripts/knockout.mapping-latest.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
 $("#t1").jqGrid({
                url: '/Home/getorders',
                datatype: 'json',
                mtype:'GET',
                height: 150,
                rowNum: 10,
                rowList: [10, 20, 30],
                colNames: ['id', 'invoicedate', 'name', 'note', 'tax', 'total'],
                colModel: [{ name: 'id', index: 'id' },
                    { name: 'invoicedate', index: 'invoicedate' },
                    { name: 'name', index: 'name' },
                    { name: 'note', index: 'note' },
                    { name: 'tax', index: 'tax' },
                    { name: 'total', index: 'total'}],
                viewrecords: true,
                pager: "#d1",
                caption: "Table Data"
            });
                        var ids = jQuery("#t1").jqGrid('getDataIDs');                                           
            for (var i = 0; i < ids.length; i++)
                jQuery("#t1").jqGrid('addRowData',ids[i]);
                                             // does not load data into table "#t1".//
        });                   
    </script>
</head>
<body>
    <table id="t1">
    </table>
    <div id="d1">
    </div>
</body>
</html>

$(文档).ready(函数(){
$(“#t1”).jqGrid({
url:“/Home/getorders”,
数据类型:“json”,
mtype:'GET',
身高:150,
rowNum:10,
行列表:[10,20,30],
colname:['id','invoicedate','name','note','tax','total'],
colModel:[{name:'id',index:'id'},
{名称:'invoicedate',索引:'invoicedate'},
{name:'name',index:'name'},
{name:'note',index:'note'},
{name:'tax',index:'tax'},
{name:'total',index:'total'}],
viewrecords:是的,
传呼机:“d1”,
标题:“表格数据”
});
var id=jQuery(“#t1”).jqGrid('getdataid');
对于(变量i=0;i
internetexplorer的版本是IE9。