【发布时间】:2015-03-12 15:15:03
【问题描述】:
我最近被介绍到syncfusion,我正在尝试使用他们的基本网格功能。
我有小提琴中显示的html代码和一个名为orders的单独js文件,其中包含:
$("#Grid").ejGrid({
columns: [
{ field: "Order", headerText: "Order ID", width: 75, textAlign: ej.TextAlign.Right },
{ field: "CustomerID", headerText: "Customer ID", width: 80 },
{ field: "ShipName", headerText: "Ship Name", width: 100 },
{ field: "ShipCity", headerText: "Ship City", width: 100 },
{ field: "Freight", width: 80, format: "{0:C3}", textAlign: ej.TextAlign.Right }
]
});
基本上,我试图在第 3 节中显示一个表格,但不断收到此错误:
jquery.easing.min.js:44 Uncaught ReferenceError: jQuery is not defined jquery.easing.min.js:44(匿名函数)
ej.web.all-latest.min.js:10 未捕获类型错误:无法读取属性 未定义 ej.web.all-latest.min.js:10 的“扩展”(匿名函数) ej.web.all-latest.min.js:10(匿名函数)
orders.js:30 Uncaught TypeError: undefined is not a function orders.js:30(匿名函数)
我尝试过将 js 直接用作 html 中的脚本标记,但这不起作用。我也尝试将其包装在 document.ready 函数中,但无济于事。
JsFiddle 示例http://jsfiddle.net/Ld6mn6xb/
【问题讨论】:
标签: javascript jquery html node.js syncfusion