![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
weixin_47127217
这个作者很懒,什么都没留下…
展开
-
Vue组件的通信(方法之一)
首先你得初步了解一下ref,直接用也行 <!--父组件--> <propschild ref="propschild"></propschild> <span @click="getchildfundata" style="cursor:pointer;">获取子组件的数据</span> getchildfundata(){ //获取子组件的数据 console.log(this.$refs.propschild.msg)原创 2021-12-03 16:12:54 · 430 阅读 · 0 评论 -
Vue 刷新问题解决
关前提醒:本人小白一枚,很多地方不懂,也可能很多地方说的不到位或者说错了请各位大佬多多理解,也望各位大佬不吝赐教! 在使用vue进行商品收藏的时候点击方法跳转过去发现数据不会被重新调用(之前网页已经加载过一次了) 调用方法如下: created() { alert('created'); this.getUserId(); this.getData(); } 使用了keep-live原创 2021-11-13 10:23:56 · 1156 阅读 · 0 评论