会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
铽楉QAQ
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2021年3月10日
Vue数据 父传子 子传父 子传子
摘要: 父传子 父组件 <template> <div> <!-- 通过给子组件自定义属性和事件来传递数据 --> <son :fatherAge="age" @fatherMethod="log"></son> </div> </template> <script> import son from './
阅读全文
posted @ 2021-03-10 12:15 铽楉QAQ
阅读(826)
评论(0)
推荐(0)
2021年1月7日
vscdoe插件eslint使用
摘要: https://blog.csdn.net/jagger_guo/article/details/104724659/
阅读全文
posted @ 2021-01-07 08:59 铽楉QAQ
阅读(110)
评论(0)
推荐(0)
2021年1月6日
v-on事件处理中函数名有无括号的区别
摘要: 知乎回答:https://www.zhihu.com/question/55753541 个人理解: 不加括号当解析器,会传入一个默认参数,这个默认参数就是触发时间$event 加了括号当js代码执行 show: function(e) { console.log(e); } // <button
阅读全文
posted @ 2021-01-06 15:33 铽楉QAQ
阅读(147)
评论(0)
推荐(1)
2021年1月4日
vue事件处理--获得触发事件的dom元素
摘要: $event是触发事件,它的path属性和composedPath方法都能获得dom树的数组 IE11和Edge都不支持path或composedPath。Firefox支持composedPath。Chrome支持path(这是Google的原始想法)和composedPath。 https://
阅读全文
posted @ 2021-01-04 10:57 铽楉QAQ
阅读(1053)
评论(0)
推荐(0)
input设置disable后无法触发点击事件
摘要: 解决方法:在input标签外面添加一个父标签,将事件挂载到父标签上,通过冒泡来触发
阅读全文
posted @ 2021-01-04 10:40 铽楉QAQ
阅读(3213)
评论(0)
推荐(0)
2020年12月31日
Vue监听属性
摘要: 学习Vue时发现监听属性有点奇怪,出现无法监听的情况,所以查了点别人的笔记 https://www.cnblogs.com/r-mp/p/11224196.html
阅读全文
posted @ 2020-12-31 08:10 铽楉QAQ
阅读(72)
评论(1)
推荐(0)
上一页
1
2
公告