- 博客(4)
- 收藏
- 关注
原创 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
260
原创 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
原创 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
原创 关于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
314
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人