Loading

02 2020 档案

摘要:A. Cow and Haybales 题面 The USA Construction Operation (USACO) recently ordered Farmer John to arrange a row of n haybale piles on the farm. The \(i\)- 阅读全文
posted @ 2020-02-22 23:20 GoodCoder666 阅读(40) 评论(0) 推荐(0)
摘要:产生 \([0,1)\) 之间的随机实数,即 \(0\le\text{Math.random()}<1\) Math.random() // 返回值样例: // #1:0.60958701902852 // #2:0.16182155144292465 // #3:0.301268214488981 阅读全文
posted @ 2020-02-09 20:01 GoodCoder666 阅读(91) 评论(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 @ 2020-02-05 12:26 GoodCoder666 阅读(555) 评论(0) 推荐(0)
摘要:Collection.orderBy / Query.orderBy 指定查询排序条件 方法签名如下: function orderBy(fieldName: string, order: string): Collection | Query 方法接受一个必填字符串参数fieldName用于定义需 阅读全文
posted @ 2020-02-04 15:53 GoodCoder666 阅读(149) 评论(0) 推荐(0)
摘要:因为仅有onPullDownRefresh是不行的,需要配置: 如果是单个页面需要onPullDownRefresh,在对应页面的json文件中设置"enablePullDownRefresh": true,如: { "backgroundTextStyle": "light", "navigati 阅读全文
posted @ 2020-02-04 13:10 GoodCoder666 阅读(626) 评论(0) 推荐(0)
摘要:报错: -501007 invalid parameters | errMsg: Invalid Key Name: _openid 原因: 不能设置_openid,它是云服务器根据用户的openID自动设置的 解决: 不要设置openID 错误代码 wx.cloud.database().coll 阅读全文
posted @ 2020-02-03 21:07 GoodCoder666 阅读(128) 评论(0) 推荐(0)
摘要:如未开通云开发,请看这篇 基础库版本需为2.3.3以上,建议设为最新版本 新建云函数: 右击cloudfunctions,选择新建Node.js云函数 输入login 现在云开发控制台的样子: 此函数会保存openID至本地存储,并在出错时调用error: function saveOpenID(e 阅读全文
posted @ 2020-02-03 17:57 GoodCoder666 阅读(70) 评论(0) 推荐(0)
摘要:wx.showToast({ title: '成功', icon: 'fail', duration: 2000, success: func }) wx.showToast({ title: '成功', icon: 'fail', duration: 2000, success: res => { 阅读全文
posted @ 2020-02-02 15:43 GoodCoder666 阅读(41) 评论(0) 推荐(0)
摘要:错误 Uncaught (in promise) thirdScriptError errCode: -401003 api parameter type error | errMsg: parameter.data should be object instead of undefined; Er 阅读全文
posted @ 2020-02-02 11:17 GoodCoder666 阅读(111) 评论(0) 推荐(0)