【问题标题】:How to make Vue.js and Thymeleaf exchange data如何让 Vue.js 和 Thymeleaf 交换数据
【发布时间】:2018-02-11 11:08:03
【问题描述】:

鉴于eVue.js 数据,我想在点击网址/profile/someusername 时触发。

<a th:href="@{/profile}">{{e.username}}</a>

【问题讨论】:

    标签: vue.js vuejs2 thymeleaf


    【解决方案1】:

    有一些时间在文档上。我发现了更清洁、更好的修复方法。

    <a v-bind:href="'/baseAppPath/profile/'e.username">{{e.username}}</a>
    

    <a :href="'/baseAppPath/profile/'e.username">{{e.username}}</a>
    

    【讨论】:

      猜你喜欢
      • 2020-08-14
      • 2018-05-30
      • 2015-06-20
      • 2021-02-05
      • 2019-01-19
      • 2019-11-27
      • 2021-09-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多