Skip to content

Instantly share code, notes, and snippets.

@PKTseng
Created August 1, 2020 14:44
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/86113fdf18bdf8574c73d93d90bc2f14 to your computer and use it in GitHub Desktop.
Save PKTseng/86113fdf18bdf8574c73d93d90bc2f14 to your computer and use it in GitHub Desktop.
<div id='app'>
<p>請加上 v-if 判斷式</p>
<ul>
<li v-for="(item, key) in arrayData" v-if=" item.age <= 19">
{{ key }} - {{ item.name }} {{ item.age }} 歲
</li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment