ios切换为UIwebview就可以
默认的方式 不可以报
xhr:{"readyState":0,"responseText":"","status":0,"statusText":"error"}
$.ajax({
url: zfyurl + "/third/api/file/downfile",
data: {
'downloadUrl': zfyurl +'/admin/api/center/attach/download?id=' + e
},
type: "get",
dataType: 'json',
success: res => {
// this.urlss = res.data
console.log('haha' + JSON.stringify(res))
// console.log('mounted'+this.urlss)
mui.openWindow({
id: "./fileView.html?url=" + res.data,
url: "./fileView.html?url=" + res.data,
styles: {
"render": "always",
"popGesture": "hide",
"bounce": "vertical",
}
})
},
error: function(xhr, type, errorThrown) {
//异常处理;
console.log('xhr:' + JSON.stringify(xhr));
console.log('errorThrown:' + errorThrown);
console.log('type:' + type);
}
})
1***@163.com (作者)
这个问题解决 谢谢回复
2020-11-16 15:42