学习笔记
待风起云散
这个作者很懒,什么都没留下…
展开
-
openlayers知识点
openlayers知识点 动画移动 map1.getView().animate({center: center}, {zoom: 18}) // 先移动再放大 map1.getView().animate({zoom: 18}, {center: center}) // 先放大再移动 map1.getView().animate({center: center, zoom: 18}) // 同时移动和放大 原文链接:https://blog.csdn.net/envon123/article/det原创 2021-04-29 17:47:50 · 251 阅读 · 0 评论 -
highcharts仪表盘
highcharts仪表盘的配置项 gaugeOption: { chart: { type: "gauge", spacing: [30, 0, 0, 0], }, credits: { enabled: false, }, title: { text: "设备故障率( % )", verticalAlign: "botto原创 2021-04-26 17:45:11 · 289 阅读 · 0 评论 -
React使用antd,less样式按需加载
React使用antd,less样式按需加载 1.下载依赖模块 npm i react-app-rewired babel-plugin-import customize-cra -D //less npm i less less-loader -D 2.在根目录配置config-overrides.js 具体配置如下: const { override, fixBabelImports, addLessLoader } = require("customize-cra"); module.expor原创 2021-01-24 21:39:00 · 360 阅读 · 0 评论 -
关于nodejs中文乱码问题
关于nodejs中文乱码问题 1.下载iconv-lite npm i iconv-lite 2. 将页面数解码保存 let str = iconv.decode(Buffer.from(data),'gbk') 3.将str转码并转为字符串 let html = iconv.encode(str,'utf8').toString() //输出console.log(html)原创 2020-11-10 21:19:24 · 311 阅读 · 0 评论