简体   繁体   中英

grails 2.0 <g:javascript> doesn't work

I have created a new grails project and run it, but I can't see the

< g:javascript library="application" />

anywhere in the source, it's like it doesn't get called at all, I'm not sure if this is a bug or not?

Replace

<g:javascript library="application" />

with:

<g:javascript library="application" />
<r:layoutResources/>

This is a breaking change introduced by the new resources plugin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM