上一页 1 2 3 4 5 6 7 8 ··· 33 下一页
摘要: uniapp(安卓)之pdf预览 方法一: 将文件下载到本地,使用uni api预览文件 exportPDF() { uni.downloadFile({ url: "http://192.168.1.237:9000/profile/statute/937820.pdf", success: re 阅读全文
posted @ 2023-11-21 15:28 莫小龙 阅读(2028) 评论(0) 推荐(0)
摘要: uniapp(安卓)之文件上传 uniapp提供的uni.chooseFile只支持H5和微信小程序,所以想上传除图片/视频外的非媒体文件,需要使用原生的方式开发。 uploadtxdr() { //使用plus选择文件 let that = this; let filePath = '' let 阅读全文
posted @ 2023-11-13 18:01 莫小龙 阅读(2696) 评论(0) 推荐(0)
摘要: openlayers之wms属性查询、空间查询 图层新建代码: let wmsSource = new ol.source.TileWMS({ url: config.dataSeverUrl, params: { 'FORMAT': 'image/png', 'VERSION': '1.1.1', 阅读全文
posted @ 2023-11-07 18:58 莫小龙 阅读(1098) 评论(0) 推荐(0)
摘要: uniapp之文件保存 文件保存分几种情况: 1.网络文件保存: 使用uni.downloadFile创建临时文件地址,然后使用uni.saveFile保存 uni.downloadFile({ //下载 url: path, success: (res) => { if (res.statusCo 阅读全文
posted @ 2023-11-07 18:51 莫小龙 阅读(3360) 评论(0) 推荐(0)
摘要: openlayers截图之图片跨域问题 报错: Error in v-on handler: "SecurityError: Failed to execute 'toBlob' on 'HTMLCanvasElement': Tainted canvases may not be exported 阅读全文
posted @ 2023-10-30 14:27 莫小龙 阅读(249) 评论(0) 推荐(0)
摘要: vue3之跳转页面时判断是否跳转 onBeforeRouteLeave((to, from, next) => ( if (ruleAllChange .value){ ElMessageBoxconfirm( "数据未保存,请问是否继续跳转?", "确认" {confirmButtonText:" 阅读全文
posted @ 2023-09-06 14:12 莫小龙 阅读(292) 评论(0) 推荐(0)
摘要: arcgisjs之图层滤镜 效果: 图层准备: 1.底图(天地图)tdtlayer()方法见:https://www.cnblogs.com/s313139232/p/17682138.html mapObj.layerYx = await tdtlayer().then((res) => { re 阅读全文
posted @ 2023-09-06 13:56 莫小龙 阅读(138) 评论(0) 推荐(0)
摘要: arcgisjs之天地图加载封装 layer.js // // 天地图影像图层 export const tdtTdtlayer = async () => { let BaseTileLayer = await arcgisPackage('BaseTileLayer'); let Request 阅读全文
posted @ 2023-09-06 13:51 莫小龙 阅读(154) 评论(0) 推荐(0)
摘要: js之转码(base64、ascii、十六进制、url) base64 npm install js-base64import { Base64 } from 'js-base64'; 编码: base64.encode("hello"); 解码: base64.decode("hello"); a 阅读全文
posted @ 2023-07-28 17:22 莫小龙 阅读(1985) 评论(0) 推荐(1)
摘要: Top-level await 新特性 「ECMAScript」提案 Top-level await 由 Myles Borins 提出,它可以让你在模块的最高层中使用 await 操作符。在这之前,你只能通过在 async 函数或 async generators 中使用 await 操作符。To 阅读全文
posted @ 2023-07-11 14:38 莫小龙 阅读(1251) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 33 下一页