|
- api.getPicture({
- sourceType: 'camera',
- encodingType: 'jpg',
- mediaValue: 'pic',
- destinationType: 'url',
- allowEdit: false,
- quality: 80,
- targetWidth: 300,
- targetHeight: 300,
- saveToPhotoAlbum:false
- }, function (ret, err) {
- if (ret.data.length > 5) {
- var boxDir = api.boxDir;
- alert(JSON.stringify(boxDir));
- updataToQiNiu(ret.data);
- }
- });
复制代码 |
|