react自学
clearlov3
这个作者很懒,什么都没留下…
展开
-
TypeError i.slice is not a function
AntD 报错TypeError i.slice is not a functiontable中报错,说明datasource有问题一种可能性:我的错误原因是:后台查询失败,返回的data是空原创 2020-10-10 17:11:32 · 2023 阅读 · 0 评论 -
Error: Could not find “store“报错问题
Error: Could not find "store"报错问题今天有人在用dva处理异步逻辑的时候出了这个错。小白过来看了好一会儿不知道什么问题,等架构大佬来看了看问题。开始还以为是umi版本的原因,他平时在umi 3的写法产生了问题。结果实际上很简单,目录models名字写错了。Error: Could not find "store" in the context of "Connect(xxxxxx)". Either wrap the root component in a <P原创 2020-08-04 22:14:58 · 6503 阅读 · 1 评论 -
JS新语法学习之let
使用let 定义变量首先看到个有意思的问题,为什么let要叫letWhy was the name ‘let’ chosen for block-scoped variable declarations in JavaScript?一、let可以定义作用在块级作用域的变量//语法let var1 [= value1] [, var2 [= value2]] [, ..., varN [= valueN]];let test1 = 2;在react中let几乎可以看为var。所谓作用在块级可原创 2020-08-03 22:07:36 · 1309 阅读 · 1 评论 -
自学React之JS新语法(ES6)
JS新语法三大变化let 和const出现class 关键字定义js类箭头函数具体内容学习中,待添加原创 2020-08-03 20:52:38 · 169 阅读 · 0 评论 -
React自学之Umi
umi问题Umi自学遇到的问题及解决(一)yarn安装umi后,使用命令 umi 报错使用umi时遇到的问题Umi自学遇到的问题及解决(一)yarn安装umi后,使用命令 umi 报错信息:‘umi’ 不是内部或外部命令。解决方法:输入yarn global bin 将路径添加到环境变量Path中。如果不能解决,注意安装完umi之后需要重开一下cmd。使用umi时遇到的问题信息:Path must be a string.问题背景:在引入了 umi-plugin-react这个依赖原创 2020-07-28 21:55:44 · 434 阅读 · 0 评论