12 2021 档案

uniapp本地文件的路径
摘要:file:///storage/emulated/0/Android/data/com.xl21127.lt/apps/__UNI__CB8CCF5/www/static/bg.png 包名 com.xl21127.lt UNIAPPID __UNI__CB8CCF5 直接用API获取 plus.i 阅读全文

posted @ 2021-12-31 11:32 Just丶随心 编辑

uniapp全屏和屏幕方向
摘要:如果想要全屏模式,在应用的manifest.json文件中app-plus节点下添加“fullscreen”节点:Boolea值类型,true表示全屏,false表示非全屏,默认值为false。 fullscreen:true function fullscreen(){ // 设置应用全屏显示! 阅读全文

posted @ 2021-12-28 08:47 Just丶随心 编辑

arcgis中地图缩放等级参考
摘要:[{ level: 0, levelValue: 1, resolution: 0.703125, scale: 295497593.05875003 }, { level: 1, levelValue: 2, resolution: 0.3515625, scale: 147748796.5293 阅读全文

posted @ 2021-12-22 09:34 Just丶随心 编辑

安卓判断字符串是否相等
摘要:Android 判断字符串是否相等 判断两个String是否相等不能直接用== 或!=,需要用equals()判断,若相等,则返回1 忽略大小写用 equalsIgnoreCase 判断TextView中文字是否相等: TextView A,B; if (A.getText().toString.e 阅读全文

posted @ 2021-12-17 11:52 Just丶随心 编辑

JS墨卡托坐标与经纬度互转
摘要://墨卡托转经纬度 mktlng(poi){ var lnglat = {}; lnglat.lng = poi.x/20037508.34*180; var mmy = poi.y/20037508.34*180; lnglat.lat = 180/Math.PI*(2*Math.atan(Mat 阅读全文

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

uniapp APP内部与网页通讯,互相执行对方方法
摘要:网页端 → 网页执行APP的方法要导入uni的js <script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script> 如果是vue项目 阅读全文

posted @ 2021-12-13 17:30 Just丶随心 编辑

wgs84坐标和gcj02互转
摘要:WGS84转GCJ02 wgs84Togcj02(lng, lat)[0] → lng wgs84Togcj02(lng, lat)[1] → lat wgs84Togcj02(lng, lat) { if (this.out_of_china(lng, lat)) { return [lng, l 阅读全文

posted @ 2021-12-10 11:02 Just丶随心 编辑

uniapp全局可拖动悬浮球
摘要:yuanqiu(){ var that=this; var kuan=375 var gao=667 uni.getSystemInfo({ success: function (res) { kuan=res.windowWidth gao=res.windowHeight } }); var v 阅读全文

posted @ 2021-12-03 10:50 Just丶随心 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

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