码迷,mamicode.com
首页 > 其他好文 > 详细

v-bind="$props" 是什么意思?

时间:2017-11-03 12:51:17      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:ace   blank   没有   文档   get   efi   ops   target   only   

猜想是绑定啥东东,在国内一直找不到答案,然后跑到一个帅哥找到答案,其实在官方文档中也有,也没有细致注意到

 

If you need to bind all props to a inner component like this:

<input :placeholder="placeholder" :required="required" :value="value">

You instead can do this:

<input v-bind="$props">

But only if defined in props.

 

官网解释,就妹的一行

v-bind="$props" 是什么意思?

标签:ace   blank   没有   文档   get   efi   ops   target   only   

原文地址:http://www.cnblogs.com/szatpig/p/7777458.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!