赞
踩
- uni.chooseImage({
- count: 1, //默认9
- sizeType: ['compressed'],
- sourceType: ['album','camera'], //从相册选择,摄像头选择
- success: (res) => {
- this.src = res.tempFilePaths[0]
- uni.getFileSystemManager().readFile({
- filePath: this.src,
- encoding: 'base64',
- success: r => { // r.data
- }
- })
- }
- })
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。