微信文档:https://developers.weixin.qq.com/miniprogram/dev/framework/ 新的获取头像方式:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/userProfile.html 这种方式,返回的路径是返回的临时路径,保存在本地。 如果要永久保存的,我的做法是通过 FileSystemManager.readFile 获取文件的base64字符串,然后上传,两个参数:filePath和encoding, filePath就是选择头像的按钮里事件bindchooseavatar返回的值:e.detail.avatarUrl encoding:可以是2进制,utf-8,base64,等。 然后就调自己的上传图片接口。本栏目推荐文章深入探索JVM:理解Java程序在虚拟机中的存储和管理从C++CLI工程的依赖库引用问题看.Net加载程序集机制微信小程序 wxs的概念jQuery自动加载更多程序微信小程序 取列表的for循环的第一个值各种语言版本的“Hello, world”程序汇总PasteSpider之接口的授权实现为什么不采用JWT方式matlab练习程序(Bundle Adjustment)图片特效/增强GUI程序如何让Visual Studio Tools for Unity插件用于调试你自己的Mono嵌入应用程序getUserProfile 头像 接口 方式 程序getuserprofile头像 接口 方式 头像 用户getuserprofile昵称 getuserprofile头像 昵称 地址 头像 信号 方式 工具 头像 程序uniapp core 头像 昵称 程序 方法 头像 昵称 程序uniapp 头像 昵称 程序 用户 getuserprofile getuserprofile uniapp uni