05 2018 档案

摘要:通常我们需要使用管道实现对数据的格式化,Angular4中的管道和之前有了一些变化,下面说一些常用的管道。 https://blog.csdn.net/haijing1995/article/details/71404350 阅读全文
posted @ 2018-05-13 17:12 一叶*秋 阅读(141) 评论(0) 推荐(0)
摘要:1.父组件 阅读全文
posted @ 2018-05-11 14:58 一叶*秋 阅读(169) 评论(0) 推荐(0)
摘要:子组件<button @click='increment()'>点击</button> increment:function(){ this.mycontent=10; alert(this.mycontent); this.$emit("increment",this.mycontent);}父组 阅读全文
posted @ 2018-05-09 15:31 一叶*秋 阅读(2941) 评论(0) 推荐(0)
摘要:父组件<componentA> <p>123</p></componentA>子组件 <template> <div> {{boonook}} <button @click ="emitMyEvent">emit</button> <slot></slot> </div></template>插槽里 阅读全文
posted @ 2018-05-02 19:42 一叶*秋 阅读(322) 评论(0) 推荐(0)

博客侧边栏公告广告位招租