[英]Array is empty in VueJs from Axios GET response | VUEJS/LARAVEL
[英]get response in html tag in vuejs
請幫助我,我怎樣才能在 Html 標簽中獲取數據,就像我在 console.loge 中一樣,我想在<span class="fa fa-heart-o"></span>
中獲取這個console.log(this.likeDes[0].like_dislike)
<span class="fa fa-heart-o"></span>
var app = new Vue({ el: "#app", data: { likes: 5 } }) // You may replace 5 with the likes count.
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script> <link href = "https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel = "stylesheet"> <div id = "app"> <i class="fa fa-heart-o"> {{likes}}</i> </div>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.