Vueを使ってJSONデータをウェブに表示したいのですが全く文字が出てきません。
どのようにしたら解決したらよろしいでしょうか?
JSONが所得できていることは確認しました。
javascript
1<template> 2 <p v-text="json_data">jsonを表示させたい</p> 3</template> 4 5<script> 6import axios from "axios"; 7 8export default { 9 name: get_json, 10 data() { 11 return { 12 json_data: [] 13 }; 14 }, 15 methods: { 16 created() { 17 axios 18 .get( 19 url 20 ) 21 .then(response => { 22 this.json_data = response.data; 23 }); 24 } 25 } 26}; 27</script>
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。