【问题标题】:Syncfusion ejGrid not displaying (uncaught reference and uncaught type error)Syncfusion ejGrid 不显示(未捕获的引用和未捕获的类型错误)
【发布时间】: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


    【解决方案1】:

    在小提琴中,您在jquery 之前引用了jquery easing,因此出现了问题并删除了多个jquery 文件。

    请在此处找到工作小提琴

    JSFiddle

    另请参阅下面的帮助链接以开始使用Syncfusion ejGrid

    ejGrid help

    现在在上面的小提琴中,我已经向网格提供了空数据,因为在小提琴中找不到order.js 文件。

    【讨论】:

      猜你喜欢
      • 2021-06-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-29
      • 2014-12-07
      • 2015-09-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多