语法错误! Catalyst server.pl解析的jqGrid问题

发布于 2024-09-06 22:29:37 字数 348 浏览 5 评论 0原文

我是 Catalyst 的新手,我发现 Catalyst 模块中内置的 server.pl 无法正确解析 jqGrid。

以下是错误消息: 错误:语法错误 源文件:http://xxx:3000/site/static/js/i18n/grid.locale-en.js 线路:2 源代码: 错误:语法错误 源文件:http://localhost:3000/site/static/js/jquery.jqGrid.min.js 线路:2 源代码:

但它可以完美解析jquery和jquery-UI。如果我将其保存为 html 页面(不由 Catalyst server.pl 解析),则没有任何问题,

感谢任何帮助!谢谢。

I'm new to Catalyst, I found server.pl built-in in catalyst module can not parse jqGrid correctly.

Below is error messages:
Error: syntax error
Source File: http: //xxx:3000/site/static/js/i18n/grid.locale-en.js
Line: 2
Source Code:

Error: syntax error
Source File: http ://localhost:3000/site/static/js/jquery.jqGrid.min.js
Line: 2
Source Code:

But it could parse jquery and jquery-UI perfectly. and There is no any problem if I save it as html page(don't parse by Catalyst server.pl)

Any help are appreciated! Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

各自安好 2024-09-13 22:29:37

此错误消息不是来自 Catalyst,而是来自您的浏览器。 Catalyst 不进行任何解析;它只是直接从 static 目录提供文件。最有可能的是,Catalyst 根本没有任何问题,您应该检查以确保 JavaScript 文件有效并且已正确放置在服务器上。如果您 100% 确定这不是问题,您应该尝试使用类似工具下载 http://xxx:3000/site/static/js/i18n/grid.locale-en.js wget 或curl 并将其与原始版本进行比较,然后返回此处并用任何差异的描述来更新您的问题。

This error message isn't from Catalyst, it's from your browser. Catalyst isn't doing any parsing; it's just serving files directly from the static directory. Most likely, there isn't any problem with Catalyst at all and you should check to make sure that the JavaScript file is valid and was placed on the server correctly. If you're 100% sure that's not the problem, you should try downloading http://xxx:3000/site/static/js/i18n/grid.locale-en.js using a tool like wget or curl and compare it to the original, then come back here and update your question with a description of any differences.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文