上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: <div> <div class="spanDom">咯技术的和卡仕达卡仕达和凯撒接电话卡是ask就电话卡手机号</div> </div> 好奇其中原理就去搜资料看了一下,特此记录。 如上一串代码: span内容过长出现省略号,这个就是一段css: .a { overflow: hidden; te 阅读全文
posted @ 2022-03-28 17:51 玛卡巴鉲 阅读(454) 评论(0) 推荐(0)
摘要: const getBrowser = () => { const { userAgent, browserLanguage, language } = navigator const outputDevice = { isIos: !!userAgent.match(/\(i[^;]+;( U;)? 阅读全文
posted @ 2022-03-16 10:22 玛卡巴鉲 阅读(438) 评论(0) 推荐(0)
摘要: function delInitCurrent(delLength = 1) { const totalPage = Math.ceil((this.pager.total - delLength) / this.pager.size) const currentPage = this.pager. 阅读全文
posted @ 2022-03-10 15:07 玛卡巴鉲 阅读(156) 评论(0) 推荐(1)
摘要: 初始化项目 npm install --save mapbox-gl import mapboxGl from 'mapbox-gl' mapboxGl.accessToken = 'your accessToken' const map = new mapboxgl.Map({ container 阅读全文
posted @ 2022-02-22 16:48 玛卡巴鉲 阅读(656) 评论(0) 推荐(0)
摘要: 加密数据解密算法 接口如果涉及敏感数据(如wx.getUserInfo当中的 openId 和 unionId),接口的明文内容将不包含这些敏感数据。开发者如需要获取敏感数据,需要对接口返回的加密数据(encryptedData) 进行对称解密。 解密算法如下: 对称解密使用的算法为 AES-128 阅读全文
posted @ 2022-02-20 15:20 玛卡巴鉲 阅读(978) 评论(0) 推荐(0)
摘要: 先上代码: /** * 构造树型结构数据 * @param {*} data 数据源 * @param {*} parentId 父节点字段 默认 'parentId' */ export function handleTree(data, parentId) { const initArr = d 阅读全文
posted @ 2021-12-20 10:36 玛卡巴鉲 阅读(54) 评论(0) 推荐(0)
摘要: 1. 属性或参数中使用 ?:表示该属性或参数为可选项 2. 属性或参数中使用 !:表示强制解析(告诉typescript编译器,这里一定有值),常用于vue-decorator中的@Prop 3. 变量后使用 !:表示类型推断排除null、undefined 来自:https://blog.csdn 阅读全文
posted @ 2021-12-07 14:59 玛卡巴鉲 阅读(345) 评论(0) 推荐(0)
摘要: 谷歌插件下载:https://chrome.zzzmh.cn/info?token=nhdogjmejiglipccpnnnanhbledajbpd Npm ZIp包下载: 直接下载:https://libraries.io/search?q= 淘宝镜像(后面加你要下载的包名):http://reg 阅读全文
posted @ 2021-11-23 13:45 玛卡巴鉲 阅读(67) 评论(0) 推荐(0)
摘要: echarts 5.0 之后移除了包内的Map文件夹,导致需要你自己去搞Json数据。 当你拿到你需要的Json数据之后,如下代码就可以看到地图: import * as echarts from "echarts"; import china from "@/config/map/json/chi 阅读全文
posted @ 2021-11-12 16:57 玛卡巴鉲 阅读(556) 评论(0) 推荐(0)
摘要: 1.要注意的重点是需要在option的series中设置一个额外的图数据:标红代码就是用来高亮的series。 const option2 = { series: [ { type: "pie", radius: "65%", }, { type: "pie", radius: "65%", lab 阅读全文
posted @ 2021-11-12 16:48 玛卡巴鉲 阅读(1361) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 11 下一页