<div id="app">
<li>{{ message }}</li>
<ol>
<li v-for="site in respond">
{{ site.total }}
</li>
</ol>
</div>
<script>
new Vue({
el: '#app',
data: {
message: 'Hello Vue.js!',
respond: [
{
"total": "1.00",
"count": "1",
"pay_time": "1527903093"
},
{
"total": "2.00",
"count": "2",
"pay_time": "123456789"
},
]
}
})
<li>{{ message }}</li>
<ol>
<li v-for="site in respond">
{{ site.total }}
</li>
</ol>
</div>
<script>
new Vue({
el: '#app',
data: {
message: 'Hello Vue.js!',
respond: [
{
"total": "1.00",
"count": "1",
"pay_time": "1527903093"
},
{
"total": "2.00",
"count": "2",
"pay_time": "123456789"
},
]
}
})