会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
彭
博客园
首页
新随笔
联系
管理
订阅
2018年8月17日
Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op.的解决方案
摘要: 一,出现以上异常的原因分析: 因为在组件挂载(mounted)之后进行了异步操作,比如ajax请求或者设置了定时器等,而你在callback中进行了setState操作。当你切换路由时,组件已经被卸载(unmounted)了,此时异步操作中callback还在执行,因此setState没有得到值。
阅读全文
posted @ 2018-08-17 11:55 pyj063
阅读(851)
评论(0)
推荐(0)
2018年8月16日
create-react-app + mobx 搭建项目
摘要: 一,脚手架搭建 npm install -g create-react-app 二,新建文件夹 create-react-app one-app 三,进入文件夹后,安装mobx mobx-react npm install --save mobx mobx-react 四,npm start 运行程
阅读全文
posted @ 2018-08-16 13:50 pyj063
阅读(268)
评论(0)
推荐(0)
2018年4月19日
Webpack 入门教程
摘要: http://www.shouce.ren/api/view/a/12146
阅读全文
posted @ 2018-04-19 11:52 pyj063
阅读(66)
评论(0)
推荐(0)
ES6语法总结
摘要: https://blog.csdn.net/yu452148611/article/details/53897361
阅读全文
posted @ 2018-04-19 11:52 pyj063
阅读(55)
评论(0)
推荐(0)
前端学习系列———cookie、sessionStorage、localStorage
摘要: https://blog.csdn.net/sinat_36521655/article/details/79992155
阅读全文
posted @ 2018-04-19 11:41 pyj063
阅读(84)
评论(0)
推荐(0)
2018年4月18日
React约束性组件与非约束性组件
摘要: https://www.qdfuns.com/article/40901/34ef7865a8431818697b8dc4956cb062.html
阅读全文
posted @ 2018-04-18 11:27 pyj063
阅读(263)
评论(0)
推荐(0)
2018年1月30日
Nodejs Md5加密
摘要: var crypto = require('crypto'); //加载加密文件var md5 = crypto.createHash('md5'); module.exports={ md5:function(str){ //暴露出md5s方法 md5.update(str); str = md5
阅读全文
posted @ 2018-01-30 14:47 pyj063
阅读(5284)
评论(0)
推荐(0)
2018年1月25日
程序学习网站
摘要: http://blog.csdn.net/JavaRuler/article/details/78811961
阅读全文
posted @ 2018-01-25 13:16 pyj063
阅读(91)
评论(0)
推荐(0)
nodejs操作mongodb数据库(mongodb)
摘要: 1.增加 2.查找 3.更新 4.删除 存储过程 在mongodb中创建存储过程 所有存储过程都存放在db.system.js中,通过db.eval(“存储过程ID()”);调用存储过程。 在代码中调用:
阅读全文
posted @ 2018-01-25 12:44 pyj063
阅读(4225)
评论(0)
推荐(0)
2018年1月21日
node中js页面发送request请求
摘要: 注意:使用promise回调函数 var that = this; new Promise((resolve, reject) => { console.log('进入Promise方法了'); request({ method: 'GET', url: wx_gettoken_url }, fun
阅读全文
posted @ 2018-01-21 11:24 pyj063
阅读(731)
评论(0)
推荐(0)
下一页
公告