FileSystemManager access怎么调用
- 需求的场景描述(希望解决的问题)
class FileAccessObj
{
constructor(resName)
{
this.path = resName;
}
success() {
console.log("success Load res " + fileAccessObj.path);
var irm = new ImageResManager;
irm.GetRes(this.path).ActualLoad();
}
fail(errmsg) {
console.log("failed Load res " + errmsg);
}
complete()
{
console.log("complete Load res " + errmsg);
}
}
调用代码如下:
var fs = wx.getFileSystemManager();
console.log("Load res " + fileAccessObj.path);
fs.access(fileAccessObj);
然后所有回调都不工作,是不是这样的调用有错误?
2 回复