wx.openDocument打不开jpg文件
[代码] [代码][代码]wx.downloadFile({[代码][代码]url:[代码][代码]"https://imgsrc.baidu.com/baike/pic/item/b21bb051f81986187aa0646a48ed2e738ad4e67d.jpg"[代码][代码],[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res){[代码][代码] [代码][代码]// success[代码][代码] [代码][代码]console.log([代码][代码]'down success'[代码][代码])[代码][代码] [代码][代码]console.log(res.tempFilePath)[代码][代码] [代码][代码]var[代码] [代码]filePath = res.tempFilePath[代码][代码] [代码][代码]wx.openDocument({[代码][代码] [代码][代码]filePath: filePath,[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res){[代码][代码] [代码][代码]// success[代码][代码] [代码][代码]console.log([代码][代码]'open success'[代码][代码])[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码][代码]() {[代码][代码] [代码][代码]// fail[代码][代码] [代码][代码]console.log([代码][代码]'open fail'[代码][代码])[代码][代码] [代码][代码]},[代码][代码] [代码][代码]complete: [代码][代码]function[代码][代码]() {[代码][代码] [代码][代码]// complete[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码][代码]() {[代码][代码] [代码][代码]// fail[代码][代码] [代码][代码]console.log([代码][代码]'down fail'[代码][代码])[代码][代码] [代码][代码]},[代码][代码] [代码][代码]complete: [代码][代码]function[代码][代码]() {[代码][代码] [代码][代码]// complete[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码]如上面代码,怎么总是返回“open fail”