VueJS:以冒号为前缀的html属性是什么意思? [英] VueJS: what does an html attribute prefixed with a colon signify?

查看:118
本文介绍了VueJS:以冒号为前缀的html属性是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例:

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

前面的冒号是什么意思:options :model.sync 在这里?我在互联网上搜索过,无法在任何地方找到答案。

What is the meaning the colon in front of :options and :model.sync here? I've searched all over the internet and can't find an answer anywhere.

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

推荐答案

在Vue模板中,以html属性为前缀的冒号 v-bind 的简写

In a Vue template, a colon : prefixing an html attribute is shorthand for v-bind.

以下是 v-bind

这篇关于VueJS:以冒号为前缀的html属性是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆