博客
关于我
uni-app 里面placeholder父组件 → 子组件传值(父向子传值)
阅读量:156 次
发布时间:2019-02-28

本文共 178 字,大约阅读时间需要 1 分钟。

子组件:

(1)

(2)子组件 通过props的方法,接受父组件传的 placeholder 

props:['placeholder']

父组件:

(1)引入子组件

(2)页面加载的时候,将placeholder传给  子组件

=======================

这样,父组件placeholder里面传入的值,在子组件里面就可以接收到,并且展示

转载地址:http://hmfj.baihongyu.com/

你可能感兴趣的文章
nnU-Net 终极指南
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>