如何写精华回答,获更多曝光?
发布
拉起相册选择图片页面失败
问题场景描述:
拉起相册选择图片页面失败,代码如下:
let PhotoSelectOptions = new picker.PhotoSelectOptions();PhotoSelectOptions.MIMEType = picker.PhotoViewMIMETypes.IMAGE_TYPE;PhotoSelectOptions.maxSelectNumber = maxNO;let photoPicker = new picker.PhotoViewPicker();photoPicker.select(PhotoSelectOptions).then((result) => {}).catch(error) {}
表现为,直接出错,error、result 都是undefined。