【发布时间】:2016-11-14 14:35:37
【问题描述】:
我目前在我的 grails 视图中有这个可以在新窗口中打开一个 pdf 文件:
<a href="${resource(dir: 'userGuides', file: file.getValue())}" target="_blank"> ${file.getValue()}</a><br/><br/>
其中file.getValue() 是带有扩展名的文件的名称。
这默认为 grails-app/assets/userGuides 的路径。我想更改它,以便它从本地目标打开文件,例如 C:/Users/user1/userGuides/
我该如何改变这个?
【问题讨论】: