2020年11月19日

vue 中 emit 触发 自定义组件事件报错Custom event name ‘clickFather‘ must be kebab-case 原因

摘要: 问题描述: 在vue项目中触发自定义组件事件,然后报错提示 custom event name 'clickFather' must be kebab-case 。 解决办法: 将用emit触发的这个方法名称 换成小写的 => clickfather 这样子就不会报错了。 阅读全文

posted @ 2020-11-19 13:34 有匪 阅读(1807) 评论(0) 推荐(0)

jQuery版本过低,引发 e.indexOf is not a function

摘要: 问题描述: 引入jQuery文件,发现控制台报错 e.indexOf is not a function。 解决方法: 把之前使用 $(window).load(function(){}) 替换成:$(window).on('load',function(){}) 即可。 阅读全文

posted @ 2020-11-19 13:25 有匪 阅读(1678) 评论(0) 推荐(0)

导航