06 2018 档案

摘要:this.setState是异步的,所以在this.setState之后不能立刻得到最新的state数据关于如何获取最新的数据,有如下三种方法 1.回调函数 2.利用组件生命周期函数componentDidUpdate 3.利用setTimeout 延迟为0 当setTimeout 延迟为0时 co 阅读全文
posted @ 2018-06-29 09:52 大耳朵小虎 阅读(189) 评论(0) 推荐(0) 编辑
摘要:class Tools { static loadScript(url, callback) { let old_script = document.getElementById(url); if (old_script) { if (old_script.ready == true) { // c 阅读全文
posted @ 2018-06-14 09:54 大耳朵小虎 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-06-01 15:20 大耳朵小虎 阅读(3376) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示