摘要: 一、参数规则 1、可选的 2、数组类型 3、值为state或者props 二、不同的参数和返回 1、不传参数 默认的行为,会每次 render 后都执行,一般表单控制中使用 类似于类组件中的componentDidMoount以及componentDidUpdate useEffect(() => 阅读全文
posted @ 2020-11-26 10:24 程序員劝退师 阅读(2978) 评论(0) 推荐(0) 编辑