上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页

2021年6月24日

unicloud数据聚合处理

摘要: const db = uniCloud.database(); const collection=db.collection('sblist'); //链表查 var res=await collection.aggregate() .lookup({ from: 'uni-id-users', l 阅读全文

posted @ 2021-06-24 13:49 Just丶随心 阅读(805) 评论(0) 推荐(0) 编辑

uniapp的post请求失效问题

摘要: header:{ 'Content-type':'application/x-www-form-urlencoded'}//或者:header : { 'content-type': 'application/x-www-form-urlencoded;charset=utf-8' } 最终发送给服 阅读全文

posted @ 2021-06-24 10:43 Just丶随心 阅读(1364) 评论(0) 推荐(0) 编辑

unicloud链表查询

摘要: 假设 orders 集合有以下记录: [ {"_id":4,"book":"novel 1","price":30,"quantity":2}, {"_id":5,"book":"science 1","price":20,"quantity":1}, {"_id":6} ] books 集合有以下 阅读全文

posted @ 2021-06-24 10:04 Just丶随心 阅读(1164) 评论(0) 推荐(0) 编辑

2021年6月22日

uni-id的使用

摘要: https://www.bctos.cn/doc/18/1958 阅读全文

posted @ 2021-06-22 10:26 Just丶随心 阅读(306) 评论(0) 推荐(0) 编辑

2021年6月21日

坐标转换

摘要: //定义一些常量const x_PI = 3.14159265358979324 * 3000.0 / 180.0;const PI = 3.1415926535897932384626;const a = 6378245.0;const ee = 0.00669342162296594323; / 阅读全文

posted @ 2021-06-21 11:10 Just丶随心 阅读(151) 评论(0) 推荐(0) 编辑

2021年6月15日

uniapp退出应用改变为后台运行

摘要: let main = plus.android.runtimeMainActivity();//为了防止快速点按返回键导致程序退出重写quit方法改为隐藏至后台 plus.runtime.quit = function() { main.moveTaskToBack(false);};//重写toa 阅读全文

posted @ 2021-06-15 13:05 Just丶随心 阅读(3514) 评论(0) 推荐(0) 编辑

2021年6月11日

uni-id

摘要: https://www.bctos.cn/doc/18/1958 阅读全文

posted @ 2021-06-11 13:12 Just丶随心 阅读(15) 评论(0) 推荐(0) 编辑

2021年6月10日

JS检测图片路径是否存在

摘要: checkImgExists(imgurl) { var ImgObj = new Image(); //判断图片是否存在 ImgObj.src = imgurl; console.log(ImgObj.fileSize);//打印出来是undefined //没有图片,则返回-1 if (ImgO 阅读全文

posted @ 2021-06-10 09:02 Just丶随心 阅读(1307) 评论(0) 推荐(0) 编辑

2021年6月4日

uniapp吊起qq聊天(APP端)

摘要: if (plus.os.name == "Android") { var main = plus.android.runtimeMainActivity(); var Intent = plus.android.importClass('android.content.Intent'); var U 阅读全文

posted @ 2021-06-04 17:01 Just丶随心 阅读(400) 评论(0) 推荐(0) 编辑

uni-app 中如何打开外部应用

摘要: 1 plus.runtime.openURL(this.url, function(res) { //this.url:scheme例如 'alipay://' console.log(res); }); 2 let _this = this; // 判断平台 if (plus.os.name == 阅读全文

posted @ 2021-06-04 16:23 Just丶随心 阅读(737) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页

导航