【问题标题】:How can I store a link into a velocity varible and display it in html?如何将链接存储到速度变量中并在 html 中显示?
【发布时间】:2020-09-22 22:42:08
【问题描述】:

这是我的做法,但显然是错误的:

#set( $product_link = 'https://www.viator.com/tours/x/x-x/d0-22869ALHAMBRAEXC')
<p> Link: $product_link </p> 

【问题讨论】:

    标签: java html css velocity


    【解决方案1】:

    只要做:

    #set( $product_link = 'https://www.viator.com/tours/x/x-x/d0-22869ALHAMBRAEXC')
    <p> <a href="$link">Link</a> </p>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-01
      • 2019-03-08
      • 2015-04-07
      • 2022-12-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多