var btns = [{title: "拍照"}, {title: "从相册选择"}];
plus.nativeUI.actionSheet({
//title: "修改头像",
cancel: "取消",
buttons: btns
}, function(btn) {
switch (btn.index) {
case 1:cameraImage();break;
case 2:galleryImg();break;
default:break;
}
});
代码就这样。无关的 link 和 script 标签都注释掉了。几个手机的效果都是如下图一样。这个怎么破
fountainhead
- 发布:2016-10-08 10:20
- 更新:2016-10-09 11:41
- 阅读:1249