02 2019 档案

摘要:Vue: ref 传值 父组件<test1 ref="AAA"></test1>子组件<img ref="BBB" /> methods:{ afun(){ ... } } if (this.$refs.AAA) { this.$refs.AAA.$refs.BBB.src = "xxx"; thi 阅读全文
posted @ 2019-02-21 15:41 永颜 阅读(366) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示