摘要: 1. constructor()它在component被创建时调用。This hook flows from parent to child,即它首先在parent中触发。使用constructor()须知: 1. Constructor中的第一个语句必须是super(). 设置之后this.才会有 阅读全文
posted @ 2021-07-15 17:40 Clsriz 阅读(160) 评论(0) 推荐(0) 编辑