logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

uniapp 微信小程序使用TextEncoder,arrayBufferToBase64

摘要:本文介绍了在uniapp微信小程序中使用TextEncoder和arrayBufferToBase64的方法。针对真机可能报错的问题,建议在main.js首行添加TextEncoder的兼容实现,支持ASCII、中文、emoji等字符编码。同时提供了将字符串转为UTF-8编码Uint8Array,再通过uni.arrayBufferToBase64转换为base64的完整代码示例。该方案解决

#uni-app#微信小程序#小程序
NotFoundError Failed to execute ‘insertBefore‘ on ‘Node‘

NotFoundError: Failed to execute ‘insertBefore’ on ‘Node’: The node before which the new node is to be inserted is not a child of this nod” 记录vue报错。

文章图片
#vue.js#javascript#前端
关于小程序测试账号如何移除

有很多小伙伴一开始做开发,一开始用来做测试号,登录微信公众号的时候会提示配置项, 那么如何移除掉呢https://mp.weixin.qq.com/

文章图片
#小程序#uni-app#前端
前端发送请求,后端如何接收数据

前端发送请求数据,后端如何接收数据

#前端#java#spring
到底了