gpt4 book ai didi

jquery - jqgrid 错误 - b.jgrid.jqID 不是函数

转载 作者:行者123 更新时间:2023-12-03 21:54:16 25 4
gpt4 key购买 nike

我正在尝试开始使用 jQuery 插件 jqGrid,但是它给了我错误 - “b.jgrid.jqID 不是函数”。我从http://www.trirand.com/blog/?page_id=6下载了插件包含所有功能,并引用 jquery.jqGrid.min.js 和 grid.locale-en.js。

这是 html:

<table id="list"></table>
<div id="pager"></div>

这是 js:

jQuery(function () {

jQuery("#list").jqGrid({
url: '/admin/campus/getnearbybusinesses',
datatype: "json",
colNames: ['Name', 'Location'],
colModel: [
{ name: 'Name', index: 'Name', width: 150 },
{ name: 'Location', index: 'Location', width: 150 }
],
rowNum: 10,
rowList: [10, 20, 30],
pager: '#pager',
sortname: 'Name',
viewrecords: true,
sortorder: "asc",
caption: "Businesses"
});

jQuery("#list").jqGrid('navGrid', '#pager', { edit: false, add: false, del: false });

});

最佳答案

请尝试包含“i18n/grid.locale-en.js”在“jquery.jqGrid.src.js”之前

关于jquery - jqgrid 错误 - b.jgrid.jqID 不是函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5970600/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com