Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jquery.jqGrid.min.js:52未捕获类型错误:无法读取属性';p';未定义的_Javascript_Jquery_Jqgrid - Fatal编程技术网

Javascript jquery.jqGrid.min.js:52未捕获类型错误:无法读取属性';p';未定义的

Javascript jquery.jqGrid.min.js:52未捕获类型错误:无法读取属性';p';未定义的,javascript,jquery,jqgrid,Javascript,Jquery,Jqgrid,我使用的是JqGrid 5.0.1 网格不可见 脚本包括: <script type="text/javascript" src="<c:url value="/resources/js/jquery-2.1.4.min.js" />"> </script> <script type="text/javascript" src="<c:url value="/resources/js/jquery.jqGrid.min.js" />

我使用的是JqGrid 5.0.1

网格不可见

脚本包括:

<script type="text/javascript"  src="<c:url value="/resources/js/jquery-2.1.4.min.js" />">   </script> 
<script type="text/javascript"  src="<c:url value="/resources/js/jquery.jqGrid.min.js" />">      </script> 
<script type="text/javascript"  src="<c:url value="/resources/js/i18n/grid.locale-en.js" />">    </script>
<script type="text/javascript"  src="<c:url value="/resources/js/jquery-ui.min.js" />"></script>
寻呼机配置为

    $('#jqGrid').navGrid('#jqGridPager', {
        edit : true,
        add : true,
        del : true,
        search : false,
        refresh : false,
        view : false,
        position : "left",
        cloneToTop : true
    },
    // options for the Edit Dialog
    {
        url : 'someurl',
        editCaption : "Edit",
        recreateForm : true,
        checkOnUpdate : true,
        checkOnSubmit : true,
        closeAfterEdit : true,
        errorTextFormat : function(data) {
            return 'Error: ' + data.responseText
        }
    },
    // options for the Add Dialog
    {
        url : 'someurl',
        closeAfterAdd : true,
        recreateForm : true,
        errorTextFormat : function(data) {
            return 'Error: ' + data.responseText
        }
    },
    // options for the Delete Dailog
    {
        url : 'someurl',
        errorTextFormat : function(data) {
            return 'Error: ' + data.responseText
        }
    });
如果删除寻呼机配置,错误将消失。请注意,即使卸下寻呼机,网格也不可见

HTML代码是

<table id="jqGrid"></table>
<div id="jqGridPager"></div>


尝试将URL更改为所述的免费jqGrid URL。如果相同的JavaScript代码能够正常工作,那么可能是Guriddo jqGrid JS中的一些错误。@Oleg Yes,错误消失。但是网格仍然不可见。从
someurl
返回的数据应该与您使用的选项对应。您应该使用IE/Chrome/Firefox的开发人员工具查看从
someurl
返回的确切数据。您可以将问题附加到数据中。@Oleg clean reset完成了此操作。谢谢你的帮助。
<table id="jqGrid"></table>
<div id="jqGridPager"></div>