<ul>
<li>language</li>
< v-if= "tree()"> //which tag I may use or any other process
<li>home</li>
<li>about</li>
<>
< v-else> //which tag I may use or any other process
<li>accounts</li>
<li>listing</li>
<>
</ul>'
Run Code Online (Sandbox Code Playgroud)
在V-if我可能使用的html标签或任何其他vue.js过程中使用它.
Bho*_*yar 44
你可以使用模板:
<template v-if="condition">
</template>
<template v-else>
</template>
Run Code Online (Sandbox Code Playgroud)
模板不会在浏览器中呈现.但它会将此内容解析为html.
| 归档时间: |
|
| 查看次数: |
6682 次 |
| 最近记录: |