Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Play 框架中使用以下模板标签来创建锚标签:
#{a @Application.foo( bar )} foobar #{/a}
有谁知道如何修改它以在新页面中打开链接(即 target="_blank")?
关于什么 :
<a href="@{@Application.foo( bar )}" target="_blank">foobar</a>
?
编辑:这应该工作
#{a @Application.foo( bar ), target:"_blank"} foobar #{/a}