[Vuejs]-What's the difference between the `&` and `&&` in Vue.js?

-1👍

They have the same type of logic. 0101 & 1010 = 0000. However && will not valuate the second one if the first on is false, it will always consider the second one true..

try this

<span
  v-if="1 > 3 && 2 > 3"
>
  span
</span>

Leave a comment