摘要: $到底做了什么? jquery把元素包装成为了jquery的实例,这个实例继承了jquery的原型方法,这样子我们才能使用jquery的方法 链式调用原理 是在每个方法后return this const fn = { fn1: function() { console.log("do someth 阅读全文
posted @ 2021-03-08 22:40 PiPai 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 调用组件 <comp :foo.sync="bar"></comp> 将被扩展为 <comp :foo="bar" @update:foo="val => bar = val"></comp> 当子组件需要更新 foo 的值时,它需要显式地触发一个更新事件 this.$emit('update:fo 阅读全文
posted @ 2021-03-08 22:34 PiPai 阅读(33) 评论(0) 推荐(0) 编辑