摘要:
uniapp页面 <template> <view class=""> <web-view ref="webview" :src="url" @message="handleMessage"></web-view> </view> </template> <script> export defaul 阅读全文
摘要:
[原文插件地址](https://ext.dcloud.net.cn/plugin?id=12988) 阅读全文
摘要:
利用5+app native.js io文件管理模块 ``` 1.新建js文件 // 文件写入 export const writeFileIos = function(filename, data) { plus.io.requestFileSystem( plus.io.PUBLIC_DOCUM 阅读全文
摘要:
1.通过递归函数 function deepCopy(obj) { let newObj = Array.isArray(obj) ? [] : {}; for (var key in obj) { // 判断是否是数组类型 if (obj[key] instanceof Array) { newO 阅读全文
摘要:
1.安装依赖 npm install print-js --save 2.在需要的vue页面引入 import print from 'print-js' 3.在vue页面使用 <template> <div class="content"> <div class="footer"> <!-- on 阅读全文
摘要:
1.创建map.vue页面 <template> <div class="openlayer"> <div id="map" ref="rootmap"> <div v-for="(item, index) in mapMarkData" :key="index" > <MapIconMark :p 阅读全文
摘要:
一.通过工具下载瓦片地图的图片 1.91卫图助手 (企业版需要激活) 2.迈高图 (需要会员,没有会员限制下载数量并且有水印) 3.地图下载器 (免费挺好用的) 二.OpenLayers的使用 1.安装依赖 npm install ol 2.创建 OpenLayers 组件 <template> < 阅读全文
摘要:
***忘记摘抄那个博客的了,闲的时候记录了下;现在vue3版本的element-ui已经有类似的组件了 <!-- /** * 树形下拉选择组件,下拉框展示树形结构,提供选择某节点功能,方便其他模块调用 * 调用示例: * <tree-select * :height="400" // 下拉框中树形高 阅读全文
摘要:
js Page({ data: { canvasName: 'handWriting', ctx: '', canvasWidth: 0, canvasHeight: 0, transparent: 1, // 透明度 selectColor: 'black', lineColor: '#000', 阅读全文
摘要:
封装until.js // 获取小程序以及设备信息 function get(success, fail=undefined) { // 设备信息 const info = { // 系统设备信息原对象 info: {}, // 是否为iOS isIOS: false, // 是否为iphoneX 阅读全文