上一页 1 ··· 4 5 6 7 8
摘要: 产生 \([0,1)\) 之间的随机实数,即 \(0\le\text{Math.random()}<1\) Math.random() // 返回值样例: // #1:0.60958701902852 // #2:0.16182155144292465 // #3:0.301268214488981 阅读全文
posted @ 2024-09-08 20:28 GoodCoder666 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 完整错误 jsEnginScriptError: Component is not found in path "components/comp/comp.js" (using by pages/index/index); onAppRoute Error: Component is not fou 阅读全文
posted @ 2024-09-08 20:27 GoodCoder666 阅读(81) 评论(0) 推荐(0) 编辑
摘要: Collection.orderBy / Query.orderBy 指定查询排序条件 方法签名如下: function orderBy(fieldName: string, order: string): Collection | Query 方法接受一个必填字符串参数fieldName用于定义需 阅读全文
posted @ 2024-09-08 20:26 GoodCoder666 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 因为仅有onPullDownRefresh是不行的,需要配置: 如果是单个页面需要onPullDownRefresh,在对应页面的json文件中设置"enablePullDownRefresh": true,如: { "backgroundTextStyle": "light", "navigati 阅读全文
posted @ 2024-09-08 20:24 GoodCoder666 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 报错: -501007 invalid parameters | errMsg: Invalid Key Name: _openid 原因: 不能设置_openid,它是云服务器根据用户的openID自动设置的 解决: 不要设置openID 错误代码 wx.cloud.database().coll 阅读全文
posted @ 2024-09-08 20:22 GoodCoder666 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 如未开通云开发,请看这篇 基础库版本需为2.3.3以上,建议设为最新版本 新建云函数: 右击cloudfunctions,选择新建Node.js云函数 输入login 现在云开发控制台的样子: 此函数会保存openID至本地存储,并在出错时调用error: function saveOpenID(e 阅读全文
posted @ 2024-09-08 20:21 GoodCoder666 阅读(21) 评论(0) 推荐(0) 编辑
摘要: wx.showToast({ title: '成功', icon: 'fail', duration: 2000, success: func }) wx.showToast({ title: '成功', icon: 'fail', duration: 2000, success: res => { 阅读全文
posted @ 2024-09-08 20:17 GoodCoder666 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 错误 Uncaught (in promise) thirdScriptError errCode: -401003 api parameter type error | errMsg: parameter.data should be object instead of undefined; Er 阅读全文
posted @ 2024-09-08 20:16 GoodCoder666 阅读(17) 评论(0) 推荐(0) 编辑
摘要: Date.now() // 获取1970.1.1到当前的毫秒数 Date.UTC(2000, 1, 1) // 获取1970.1.1到2000.1.1的毫秒数 阅读全文
posted @ 2024-09-08 20:14 GoodCoder666 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 为什么要自制键盘? 我最近在开发一款微信小程序,现在需要用户输入一个数字。 使用系统键盘带来的不便 如果使用系统键盘,有以下几个问题: 数字键太小,不方便; 无法阻止用户输入不合法字符(如:“&”); 小数点在一些手机上很难找到; 用户需要点击输入框; 无法控制按钮样式。 理想的自制键盘效果 123 阅读全文
posted @ 2024-09-08 20:12 GoodCoder666 阅读(96) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8