例子:
<vue-select
class="vue-select1"
name="select1"
:options="options1"
:model.sync="result1"
></vue-select>
这里:options
和:model.sync
前面的冒号是什么意思?我在整个互联网上进行了搜索,但在任何地方都找不到答案。
最佳答案
在 Vue 模板中,冒号 :
为 html 属性添加前缀是 shorthand for v-bind
.
关于javascript - VueJS : what does an html attribute prefixed with a colon signify?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44955696/