jquery 和 jquery-ui 在 Springsource Tool Suite 2.3.3.M1 中不起作用

发布于 2024-09-15 08:06:37 字数 702 浏览 1 评论 0原文

我按照位于 http://www.grails.org/plugin/jquery 并使用 STS-Eclipse 附带的 grails 命令行工具,如下所示:

grails>安装插件 jquery 圣杯> install-plugin jquery-ui

根据文档,jquery 和 jquery-ui 都应该出现在我的项目 web-app/js 目录中,该目录位于我的 eclipse 工作区下,如下所示:

workspace-sts-2.3.3.M1//web -app/js

相反,这两个项目都安装在 ~/.grails/1.3.3/projects//plugins/ 中,并且永远不会复制到我的 web-app/js 目录中。

不用说我的 GSP 视图找不到 jquery 文件。我可能会手动复制文件;但是,它似乎违反了使用 grails install-plugin jquery 的约定。

还有其他人遇到过类似的问题吗?是否有我应该设置的配置参数?

谢谢, 阿什利

I installed the jquery and jquery-ui plugins for grails into SpringSource Tool Suite (STS-Eclipse) following the documentation located at http://www.grails.org/plugin/jquery and using the grails command-line tool included with STS-Eclipse as follows:

grails> install-plugin jquery
grails> install-plugin jquery-ui

According to the documentation, both jquery and jquery-ui should appear in my projects web-app/js directory which is located under my eclipse workspace as follows:

workspace-sts-2.3.3.M1//web-app/js

Instead, both items are installed in ~/.grails/1.3.3/projects//plugins/ and are never copied to my web-app/js directory.

Needless to say my GSP views can't find the jquery files. I will likely copy the files manually; however, it seems to go against the convention of using grails install-plugin jquery.

Has anyone else had a similar problem? Is there a configuration parameter I should set?

Thx,
Ashley

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

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

发布评论

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

评论(1

找个人就嫁了吧 2024-09-22 08:06:37

我在 http://grails.1312388.n4.nabble.com/Problem-with-Grails-1-3-2-Jquery-1-4-2-2 -and-g-javascript-tag-td2271796.html

我必须将 plugin="jquery" 添加到我的 g:javascript 标记中,例如 .

谢谢
阿什利

I found the answer at http://grails.1312388.n4.nabble.com/Problem-with-Grails-1-3-2-Jquery-1-4-2-2-and-g-javascript-tag-td2271796.html.

I have to add plugin="jquery" to my g:javascript tag like .

Thanks
Ashley

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