“Win-wiązanie skrót” Kod odpowiedzi

Win-wiązanie skrót

<!-- full syntax -->
<a v-bind:href="url"> ... </a>

<!-- shorthand -->
<a :href="url"> ... </a>

<!-- shorthand with dynamic argument (2.6.0+) -->
<a :[key]="url"> ... </a>
Thankful Tarantula

V-bind

<div v-bind:class="{ active: isActive }"></div>
The above syntax means the presence of the active class will be determined by the truthiness of the data property isActive.
Awesome

Odpowiedzi podobne do “Win-wiązanie skrót”

Pytania podobne do “Win-wiązanie skrót”

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu