Vue leaning(入门)第三弹
列表渲染v-for循环数组元素(对象、数列)整理内容显示到页面上<div id="myApp">
<ul>
<li v-for = "(game, index) in games">({{ index + 1}}) {{ game.title }} / 售价: {{ game.price }}元</li>
</ul>
</div>
<script>
var myApp = new Vue({
el: '#myApp',
data: {
games: [
...