Uncaught (in promise) TypeError: Cannot read property ‘tagName’ of null
我的代码,是react项目解决
报错的原因是找不到上层的div,生成处div为null, 我这里的Card组件,接受了一个loading属性,loading会由true变成false,在false的情况下,就会有上图的报错,所以这里 去掉loading属性即可
Uncaught (in promise) TypeError: Cannot read property ‘tagName’ of null
我的代码,是react项目解决
报错的原因是找不到上层的div,生成处div为null, 我这里的Card组件,接受了一个loading属性,loading会由true变成false,在false的情况下,就会有上图的报错,所以这里 去掉loading属性即可