vue子组件向父组件传值问题记录

时间:2021-09-13 16:56:07   收藏:0   阅读:11

Event "titlechanged" is emitted in component <Login> but the handler is registered for "titleChanged". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "title-changed" instead of "titleChanged".

将驼峰转为小写title-changed

原文:https://www.cnblogs.com/yangwujun/p/15259345.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!