ypf
ypf
  • 发布:2016-06-01 14:46
  • 更新:2016-06-01 15:03
  • 阅读:1435

ios 使用plus.uploader.createUpload没有任何响应,安卓上传没有问题

分类:HTML5+

var uploadImage = function(path) {
var task = plus.uploader.createUpload(url_leave,
{method: "POST"},
function(t, status) {
console.log(JSON.stringify(status));
if (status == 200) {
var img_success = JSON.parse(t.responseText);
if (img_success[0].file_id) {
files.push(img_success[0]);
}
console.log(JSON.stringify(files));
} else {
mui.toast('提示:上传失败,稍后重试');
}
}
);
task.addData("access_token", localStorage.getItem('token'));
task.addFile(path, {key: 'file_data'} );
task.start();
}

2016-06-01 14:46 负责人:无 分享
已邀请:
BoredApe

BoredApe - 有问题就会有答案。

https地址吗,使用alpha hbuilder尝试一下HBuilder7.2.0alpha
下载地址链接:http://pan.baidu.com/s/1eRQsQ6e 密码:zdwd

  • ypf (作者)

    是https地址,你这方法是更新一下hbuilder吗?

    2016-06-01 15:18

  • 1***@qq.com

    回复 ypf: 你好,问题解决了,求帮助

    2019-12-19 09:33

该问题目前已经被锁定, 无法添加新回复