收藏
回答

uni.chooseImage 如何去掉选取文件?

问题,uni.chooseImage在iOS使用时候,弹窗除选择图片和拍照外,还会出现选取文件选项,如何能够去掉选取文件选项?

代码如下:

uni.chooseImage({

  count: 1, // 默认选中数量

  sizeType: ['original', 'compressed'], // 图片质量,原图或压缩

  sourceType: ['album', 'camera'], // 图片来源,相册或相机

  success: function (res) {

    // 返回选定照片的本地文件路径列表 tempFilePaths

    console.log(res.tempFilePaths);

  },

  fail: function (err) {

    // 选择失败的回调

    console.error(err);

  }

});

回答关注问题邀请回答
收藏

2 个回答

  • hello world
    hello world
    星期五 18:31

    h5不支持,h5不能定制化第三方app

    星期五 18:31
    有用
    回复
  • momo
    momo
    星期五 16:44

    截图看看是什么样的效果

    星期五 16:44
    有用
    回复 3
登录 后发表内容