Skip to content

Instantly share code, notes, and snippets.

@PKTseng
Last active August 1, 2020 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PKTseng/374bb1fa89db1c12ed84d172b04f87b9 to your computer and use it in GitHub Desktop.
Save PKTseng/374bb1fa89db1c12ed84d172b04f87b9 to your computer and use it in GitHub Desktop.
<ul id="app">
<li v-for="(item, key) in arrayData" :key='item.age'>
{{ key }} - {{ item.name }} {{ item.age }} 歲 <input type="text" >
</li>
</ul>
<button class="btn btn-outline-primary" @click="reverseArray">反轉陣列</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment