随笔分类 - uni-app
摘要:场景应用 微信小程序使用TCP通讯,接收数据的类型为ArrayBuffer,转字符串后中文乱码。(uniapp开发) // 原本使用方法 // 拿到TCP通讯的 ArrayBuffer 数据 let unit8Arr = new Uint8Array(arrayBuffer) let encoded
阅读全文
摘要:前言 开发过程中需要实现小程序同时展示两个模型,并且有各自的操控事件。 注:本人使用uni-app进行小程序开发。 效果 实现 这里先贴上创建canvas对象的代码。 <view class="content"> <canvas type="webgl" id="webglLeft" style="
阅读全文
摘要:前言 小程序中存在大量异步调用的接口,例如最常用的wx.login()、wx.getUserInfo()、wx.setStorage()、wx.getStorage()、wx.request(),虽然官方对部分接口也做出了同步版本,例如wx.setStorageSync、wx.getStorageS
阅读全文

浙公网安备 33010602011771号