我如何在< a>的href标签中附加文本标签
我有一个标签,该标签应该具有一个HREF,其中包含需要附加的文本。 下面的标签应为“ href =” open-job?123“,这里“ 123”来自其他来源,源是从控制器传递的模型对象填充的胸腺对象。
我如何在href中附加文本以包含简单的文本(“ open-job”)和来自胸腺的对象的文本(“ th:text =“ $ {job_form [0]}”)
<a href="open-job" class="btn btn-primary">View Detail</a>
我尝试了以下内容不出所料,这导致错误。
<a href="open-job+th:text="${Job_Form[0]}">View Detail</a>
I have an tag, which should have an href that contains text that needs to be appended.
The below tag should be "href="open-job?123", here "123" is coming from a different source, the source is a thymeleaf object which is being populated from a model object which is passed from the controller.
How can I append text in href to contain simple text("open-job") and text from a thymeleaf object("th:text="${Job_Form[0]}")
<a href="open-job" class="btn btn-primary">View Detail</a>
I tried the below and as expected, it resulted in error.
<a href="open-job+th:text="${Job_Form[0]}">View Detail</a>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论