摘要: 1.props 父组件向子组件传递值 this.$emit('',data) 子传父组件 props:['t1'] {{t1}} 2.this.$children.fucntion this.$parent.props 阅读全文
posted @ 2020-11-04 19:08 PGD 阅读(60) 评论(0) 推荐(0)
摘要: 1.插槽 (组件components) 2.具名插槽:slot 加入name属性,父组件修改根据slot = name components:{ "cpn : { template : '#cpn'} } 2.作用域 子组件及父组件作用域; 3.作用域插槽 父组件获取子组件插槽的数据 {{slot. 阅读全文
posted @ 2020-11-04 13:03 PGD 阅读(119) 评论(0) 推荐(0)
摘要: 1.Redis 和 Memcached 区别 1)redis 单核,而 memcached 可以使用多核,所以平均每一个核上 redis 在存储小数据时比 memcached 性能更高。而在 100k 以上的数据中,memcached 性能要高于 redis,虽然 redis 最近也在存储大数据的性 阅读全文
posted @ 2020-11-04 08:23 PGD 阅读(76) 评论(0) 推荐(0)