06 2021 档案

uniapp截屏
摘要:var ws=null; ws=this.$mp.page.$getAppWebview(); var bitmap=null; bitmap = new plus.nativeObj.Bitmap('test'); // 将webview内容绘制到Bitmap对象中 uni.showLoading 阅读全文

posted @ 2021-06-29 14:55 Just丶随心 编辑

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丶随心 编辑

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丶随心 编辑

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丶随心 编辑

uni-id的使用
摘要:https://www.bctos.cn/doc/18/1958 阅读全文

posted @ 2021-06-22 10:26 Just丶随心 编辑

坐标转换
摘要://定义一些常量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丶随心 编辑

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

posted @ 2021-06-15 13:05 Just丶随心 编辑

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

posted @ 2021-06-11 13:12 Just丶随心 编辑

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丶随心 编辑

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丶随心 编辑

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丶随心 编辑

Native.js示例汇总
摘要:https://ask.dcloud.net.cn/article/114 阅读全文

posted @ 2021-06-04 16:11 Just丶随心 编辑

uniapp版本更新插件
摘要:body <view class="bbgxw" v-if="isgx==1"> <view class="bbgx"> <view class="bbgx1"> 版本更新提示 </view> <view class="bbgx2"> 发现新版本,快去更新体验吧~ <view class=""> < 阅读全文

posted @ 2021-06-04 09:50 Just丶随心 编辑

excel转化json在线工具
摘要:在线excel转json:http://www.bejson.com/json/col2json/ 阅读全文

posted @ 2021-06-03 16:42 Just丶随心 编辑

uni-app权限设置参数详情
摘要:uni-app权限设置参数详情 补充安卓: 用于进行网络定位: android.permission.ACCESS_COARSE_LOCATION 用于访问GPS定位: android.permission.ACCESS_FINE_LOCATION 获取运营商信息,用于支持提供运营商信息相关的接口: 阅读全文

posted @ 2021-06-01 14:36 Just丶随心 编辑

导航

点击右上角即可分享
微信分享提示