JavaScript/vue.js/条件判断:修订间差异
来自康健生活
< JavaScript | vue.js
| 第13行: | 第13行: | ||
</div></syntaxhighlight> | </div></syntaxhighlight> | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="html"> | ||
<div id=""> | <div id=""> | ||
<div v-if="useTokenID===html">...</div> | <div v-if="useTokenID===html">...</div> | ||
<div v-else="">...</div> | <div v-else="">...</div> | ||
</div></syntaxhighlight> | </div></syntaxhighlight> | ||
2020年6月23日 (二) 00:31的版本
引言
if else
<div id="">
<div v-if="">...</div>
<div v-else="">...</div>
</div>
<div id="">
<div v-if="num===123 ? true : false ">...</div>
<div v-else="">...</div>
</div>
<div id="">
<div v-if="useTokenID===html">...</div>
<div v-else="">...</div>
</div>
No categories