【问题标题】:jquery and jquery-ui not working in Springsource Tool Suite 2.3.3.M1jquery 和 jquery-ui 在 Springsource Tool Suite 2.3.3.M1 中不起作用
【发布时间】:2010-08-19 19:20:44
【问题描述】:

我按照位于 http://www.grails.org/plugin/jquery 的文档并使用 STS-Eclipse 随附的 grails 命令行工具将 grails 的 jquery 和 jquery-ui 插件安装到 SpringSource Tool Suite (STS-Eclipse) 中,如下所示:

grails> 安装插件 jquery grails> 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 的惯例。

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

谢谢, 阿什利

【问题讨论】:

    标签: jquery jquery-ui plugins grails sts-springsourcetoolsuite


    【解决方案1】:

    我在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 标记中,例如 .

    谢谢 阿什利

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-08-29
      • 1970-01-01
      • 1970-01-01
      • 2012-06-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多