父组件中的render函数,componentWillReceiveProps,componentwillmount,componentdidmount,constructor中的action调用(发送ajax请求),以及子组件中的这几个函数的调用顺序是怎样的呢?我在render函数中console.log一句话,发现调用了好几次。是不是和ajax请求的结果延迟有关?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
认证0级讲师