例:

<vue-select
  class="vue-select1"
  name="select1"
  :options="options1"
  :model.sync="result1"
></vue-select>

这里:options:model.sync前面的冒号是什么意思?我在互联网上进行了搜索,但找不到任何答案。

此处显示的示例:https://github.com/Haixing-Hu/vue-select

最佳答案

在Vue模板中,以html属性作为前缀的冒号:shorthand for v-bind

Here's the full documentation for v-bind .

关于javascript - VueJS:带有冒号前缀的html属性表示什么?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/44955696/

10-16 13:38