<a href="mailto:support@abc.com"> mail me </a>
上面的代码不起作用,因为 mailto 中的 @ 符号使框架需要一个值,因为它认为 @ 是一个 scala 命令。因此,为了转义@符号,我使用了双@@,它适用于简单的文本。
但是在上面的链接中,当我这样使用时:
<a href="mailto:support@@abc.com"> Mail me </a>
这里,mailto: 不起作用。
最佳答案
您需要输入@
两次,例如support@@abc.com
我对自己的旋转模板进行了验证
<a href="mailto:support@@abc.com"> Mail me </a>
完全可以工作。也许您缓存了错误的版本?
关于javascript - 邮件至 : link not working using play framework in scala. html,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42714889/