SlickGrid:Slick.CellRangeDecorator 不是构造函数
我刚刚开始使用 SlickGrid,希望有人能帮助我解决这个问题。 我正在遵循示例文件并简单地尝试使用 ajax 加载我自己的表格内容。 但我不断收到此错误:
Slick.CellRangeDecorator 不是构造函数
我在 Google 上搜索过它,并且在其他任何地方都没有出现它。我认为这可能与文件被引用的方式有关,即可能调用了错误的文件路径,但 Firebug 显示所有文件都被成功调用。
如果有人可以提供帮助那就太好了。
I have just started using SlickGrid and was hoping someone can help me solve this issue.
I am following the example file and simple trying to load my own table content using ajax.
I keep getting this error though:
Slick.CellRangeDecorator is not a constructor
I have Googled it and it is not coming up anywhere else. I was thinking it might have something to do with the way the files are being references, i.e. maybe the wrong file paths were being called, but Firebug is showing that all files are being called successfully.
If anyone can help that would be great.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您从主干获取最新的 SlickGrid(截至今天为 2.0 alpha)并测试“example3-editing.html”,您应该会看到相同的错误。发生错误的原因是“example3-editing.html”缺少对 cellrangedecorator.js 文件的引用,可以通过
在该文件中添加:来修复。
您能否尝试复制示例目录中的 html 文件,然后确保使用上述声明确实包含 cellrangedecorator.js 脚本,并让我们知道这是否可以解决问题?
If you get the latest SlickGrid (2.0 alpha as of today) from the trunk and test "example3-editing.html", you should see the same error. The error occurs because "example3-editing.html" is missing a reference to the cellrangedecorator.js file and can be fixed by adding:
in that file.
Could you please try copying your html file in the example directory, then ensure that the cellrangedecorator.js script is indeed included using the above declaration and let us know if that fixes the issue?