|
楼主 |
发表于 2018-9-3 15:09:46
|
显示全部楼层
var gotFileEntry = function(fileEntry) {
console.log("a");
fileEntry.file(gotFile, fail);
};
var gotFile = function(file) { console.log("b");
/* deferred.resolve(file); */
var reader = new FileReader();
reader.onload = function(e) {
deferred.resolve(new Blob([ this.result ], {
type : 'audio/wav'
}));
};
reader.readAsArrayBuffer(file);
};
wex5 3.8的插件 这2个函数没执行,a和b没打印出来(3.6是执行了的),最后执行 window.resolveLocalFileSystemURI(url, gotFileEntry, fail);的时候跳到fail函数了
var fail = function() {
console.log("fail");
};
|
|