Created
August 1, 2020 14:44
-
-
Save PKTseng/86113fdf18bdf8574c73d93d90bc2f14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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