您好,我在使用 Infragistics Grid 的 Javascript 中出现错误。
当我$("#grid").igGrid
输入$.getJSON
我有这个错误:
未捕获的类型错误:未定义不是函数
<script type="text/javascript">
function getHU() {
var hu = document.getElementById("IP").value;
var param = location.search.split('q=')[1]
var url = '/Home/ListContactJson/?q=' + hu;
getDos(url);
}
function getDos(url) {
$.getJSON(url, function (q) {
// Grid
$("#grid").igGrid({
width: "100%",
dataSource: q,
autoGenerateColumns: false,
columns: [{
key: "LASTNAME",
headerText: "LASTNAME",
width: "33.33%"
}],
features: [{
name: "Sorting",
columnSettings: [{
columnKey: "LASTNAME",
currentSortDirection: "descending"
}]
}]
});
});
}
</script>