摘要:var ws=null; ws=this.$mp.page.$getAppWebview(); var bitmap=null; bitmap = new plus.nativeObj.Bitmap('test'); // 将webview内容绘制到Bitmap对象中 uni.showLoading
阅读全文
摘要:const db = uniCloud.database(); const collection=db.collection('sblist'); //链表查 var res=await collection.aggregate() .lookup({ from: 'uni-id-users', l
阅读全文
摘要:header:{ 'Content-type':'application/x-www-form-urlencoded'}//或者:header : { 'content-type': 'application/x-www-form-urlencoded;charset=utf-8' } 最终发送给服
阅读全文
摘要:假设 orders 集合有以下记录: [ {"_id":4,"book":"novel 1","price":30,"quantity":2}, {"_id":5,"book":"science 1","price":20,"quantity":1}, {"_id":6} ] books 集合有以下
阅读全文
摘要:https://www.bctos.cn/doc/18/1958
阅读全文
摘要://定义一些常量const x_PI = 3.14159265358979324 * 3000.0 / 180.0;const PI = 3.1415926535897932384626;const a = 6378245.0;const ee = 0.00669342162296594323; /
阅读全文
摘要:let main = plus.android.runtimeMainActivity();//为了防止快速点按返回键导致程序退出重写quit方法改为隐藏至后台 plus.runtime.quit = function() { main.moveTaskToBack(false);};//重写toa
阅读全文
摘要:https://www.bctos.cn/doc/18/1958
阅读全文
摘要:checkImgExists(imgurl) { var ImgObj = new Image(); //判断图片是否存在 ImgObj.src = imgurl; console.log(ImgObj.fileSize);//打印出来是undefined //没有图片,则返回-1 if (ImgO
阅读全文
摘要:if (plus.os.name == "Android") { var main = plus.android.runtimeMainActivity(); var Intent = plus.android.importClass('android.content.Intent'); var U
阅读全文
摘要:1 plus.runtime.openURL(this.url, function(res) { //this.url:scheme例如 'alipay://' console.log(res); }); 2 let _this = this; // 判断平台 if (plus.os.name ==
阅读全文
摘要:https://ask.dcloud.net.cn/article/114
阅读全文
摘要:body <view class="bbgxw" v-if="isgx==1"> <view class="bbgx"> <view class="bbgx1"> 版本更新提示 </view> <view class="bbgx2"> 发现新版本,快去更新体验吧~ <view class=""> <
阅读全文
摘要:在线excel转json:http://www.bejson.com/json/col2json/
阅读全文
摘要:uni-app权限设置参数详情 补充安卓: 用于进行网络定位: android.permission.ACCESS_COARSE_LOCATION 用于访问GPS定位: android.permission.ACCESS_FINE_LOCATION 获取运营商信息,用于支持提供运营商信息相关的接口:
阅读全文