阅读背景:

如何使用Grails资产-管道插件从Javascript访问图像?

来源:互联网 

I have just upgraded to Grails 2.4 and am using the Asset-Pipeline1.8.7 plugin. I am wondering how to access the images from Javascript. I am using the Google Maps Javascript V3 API and need to set some marker icons in Javascript. Is there a way to create some Javascript vars on a GSP using the tag and then access the file in my app.js code? If that is not possible, how do a reference the compiled images in assets? I have just upgraded to Grails 2.4 and am using




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: