Here is my code:
JavaScript
let Names = [
{
Name: "Josh"
FullName: ""
},
{
Name: "Jonathan"
FullName: null
},
{
Name: "James"
FullName: "James Johnson"
}];
Index.Vue
<ul>
<li v-for="item in Names"
v-if=" item.FullName != null || item.FullName != '' " >
{{FullName}}
</li>
</ul>
This v-if=" item.FullName != null || item.FullName != '' "
does not work, Why? How can I put two condition inside a v-if
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…