我使用 var image = require('$UI/system/api/native/image');
调用
image.httpToAlbum({ serverId : model.apiUrl + "?text=" + model.payUrl, success : function(res) { justep.Util.hint("图片保存成功"); alert("success"); }, fail : function(res) { alert("fail"); } });
但是一直没反应,我就调试了,然后发现 image.js 中:
var wx = base.getWx(); if (wx) { wx.chooseImage.call(this, param); } else if (window.cordova) {
var self = this;
wx 和 window.cordova 都是undefined 所以都没执行下载操作,所以这个是什么问题??
|