当前位置:网站首页>V-bind and v-on

V-bind and v-on

2022-06-13 03:42:00 _ Virgo programmer's daily life

  1. v-bind

Dynamically bind one or more html attribute

<!--  Bind one  attribute -->
<img v-bind:src="imageSrc">

<!--  abbreviation  -->
<img :src="imageSrc">
  1. v-on
    binding html event .
<!--  Method processor  -->
<button v-on:click="doThis"></button>

<!--  abbreviation  -->
<button @click="doThis"></button>
原网站

版权声明
本文为[_ Virgo programmer's daily life]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202280527093796.html