doPatient
doPatient
  • 发布:2014-12-03 13:07
  • 更新:2014-12-03 14:34
  • 阅读:1328

求官方/高手help

分类:HTML5+

/修改用户头像/
document.getElementById("headPicture").addEventListener('tap', function() {
plus.gallery.pick(function(p){
alert('test');
plus.io.resolveLocalFileSystemURL(p,function(entry){
alert('okay');
})
})
}, false);


-test会弹出,但是alert(‘okay’)不会!而且报错 Uncaught SyntaxError: Unexpected token ,

2014-12-03 13:07 负责人:无 分享
已邀请:
DCloud_App_Array

DCloud_App_Array

android平台此问题是已知的bug
这里返回的p是file:///xxxx这种格式的路径,在Android平台plus.io.resolveLocalFileSystemURL解析后无法回调。
plus.gallery.pick返回的路径可以直接在html中使用:
img.src=p

  • doPatient (作者)

    我在hbuilder相关的几个群问了,都没人回答的 非常感谢了!

    2014-12-03 15:18

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