05 2018 档案
摘要:通常我们需要使用管道实现对数据的格式化,Angular4中的管道和之前有了一些变化,下面说一些常用的管道。 https://blog.csdn.net/haijing1995/article/details/71404350
阅读全文
摘要:子组件<button @click='increment()'>点击</button> increment:function(){ this.mycontent=10; alert(this.mycontent); this.$emit("increment",this.mycontent);}父组
阅读全文
摘要:父组件<componentA> <p>123</p></componentA>子组件 <template> <div> {{boonook}} <button @click ="emitMyEvent">emit</button> <slot></slot> </div></template>插槽里
阅读全文

浙公网安备 33010602011771号