wx.getFileSystemManager().readdir

发布于 8 年前作者 na3614859 次浏览最后编辑 8 年前来自 ask

Cannot read property ‘indexOf’ of undefined;at api readdir beforeSuccess callback function

TypeError: Cannot read property ‘indexOf’ of undefined

调用wx.getFileSystemManager().readdir之后报错,但是目录结构之后又打印出来了。这是什么原因啊。

1 回复
leihuang
leihuang1 楼6 年前

beforeSuccess函数里面使用indexO检验的值查看下是否有问题