会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
anjunact
博客园
首页
新随笔
联系
订阅
管理
2016年12月2日
react 犯错
摘要: 1. import a from './xx' 一定要有 ./ 2. export default const x={} 错 改为 const x={}; export default x; 也就是要分开写 3. this.setState({}) 只有这样才会更新render 不要 this.st
阅读全文
posted @ 2016-12-02 22:02 anjunact
阅读(94)
评论(0)
推荐(0)
编辑
公告