摘要: wxml部分: <view class="container"> <canvas class="canvas1" id="myCanvas" type="2d" disable-scroll="true" bindtouchstart="canvasStart" bindtouchmove="can 阅读全文
posted @ 2023-03-30 17:36 新手上线 阅读(301) 评论(1) 推荐(0)
摘要: 1) concat() 连接两个或多个字符串,返回连接后的字符串 var Array= ["hello", "word"];var ArrayItem= ["java", "C++", "C#"];var ArrayData= ["name"];var children = Array.concat 阅读全文
posted @ 2023-03-21 14:43 新手上线 阅读(53) 评论(0) 推荐(0)
摘要: 先建一个api文件夹(叫什么都可以,但是为了规范化),在下面新建文件request.js // http // api URL const apiUrl = "https://接口地址:端口";// 公共的请求地址 // 封装微信请求方法 const request = (params) => { 阅读全文
posted @ 2023-03-21 10:18 新手上线 阅读(154) 评论(0) 推荐(0)
摘要: (1)在api/index.js文件中创建ReqClient const API_HOST = 'https://xxx.xxx.com' //接口前缀 const ReqClient = (url, method, data) => { return new Promise((resolve, r 阅读全文
posted @ 2023-03-20 17:55 新手上线 阅读(176) 评论(0) 推荐(0)