摘要: 传送门:https://cn.vuejs.org/v2/guide/components-custom-events.html https://segmentfault.com/q/1010000012055834/a-1020000012055960 1、最单纯的做法:$emit 事件回调 (推荐 阅读全文
posted @ 2018-09-28 22:21 贝尔塔猫 阅读(479) 评论(0) 推荐(0)
摘要: 官网说的是这样的: 但实际上,应该是这样修改: 阅读全文
posted @ 2018-09-28 14:09 贝尔塔猫 阅读(519) 评论(0) 推荐(0)