该文被密码保护。 阅读全文
posted @ 2020-12-11 20:39 夏目的三三 阅读(0) 评论(0) 推荐(0) 编辑
摘要: axios数据请求 1.下载模块:npm install axios 2.axios特点: 1.支持在浏览器当中发起XMLHttpRequest请求 2.支持Promise 3.自动转换json数据 4.安全,保护面首XSRF攻击 3.实现。 (1)视图页面 <script> // 在程序加载页面开 阅读全文
posted @ 2020-12-11 20:34 夏目的三三 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1.新建http云函数,选中http云函数,右键,打开终端,安装依赖: npm install request-promise 2.http.js引入request-promise用于做网络请求 var rp = require('request-promise'); 3.云函数入口函数逻辑 // 阅读全文
posted @ 2020-12-11 18:27 夏目的三三 阅读(1492) 评论(0) 推荐(0) 编辑
摘要: 按照微信开放文档,创建完云开发项目,运行,点击获取openid,报如下错: [login] 调用失败 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 阅读全文
posted @ 2020-12-11 18:17 夏目的三三 阅读(3160) 评论(0) 推荐(0) 编辑
摘要: MDN上概念 scrollTop:获取或设置一个元素的内容垂直滚动的像素数。 scrollHeight:一个元素内容高度的度量,包括由于溢出导致的视图中不可见内容。 clientHeight:元素内部的高度(单位像素),包含内边距,但不包括水平滚动条、边框和外边距。 只看概念,似懂非懂,还是要自己测 阅读全文
posted @ 2020-12-09 11:04 夏目的三三 阅读(1965) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-12-07 15:30 夏目的三三 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-12-05 11:16 夏目的三三 阅读(6) 评论(0) 推荐(0) 编辑
摘要: console.time('yue') //代码部分 console.timeEnd('yue') 阅读全文
posted @ 2020-11-28 09:11 夏目的三三 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 小程序canvas绘制纯色圆角区域: //方法: roundRectPath:function(ctx, x, y, w, h, r) { ctx.beginPath(); ctx.moveTo(x + r, y); ctx.arcTo(x + w, y, x + w, y + h, r); ctx 阅读全文
posted @ 2020-10-29 17:52 夏目的三三 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 需求: 选择子页面表格中的radio或者双击该行,得到的该行数据传到父页面,由父页面渲染。 网上的各种方法都用了,父页面就是获取不到子页面传的值,过了一晚上,睡了一觉,柳暗花明又一村。 layui type:2 iframe子页面向父页面传值: parent.objjson = obj.data / 阅读全文
posted @ 2020-09-08 10:02 夏目的三三 阅读(1043) 评论(0) 推荐(1) 编辑