摘要: opts = { tooltip: { trigger: 'item', }, xAxis: { axisPointer: { show: true, type: 'line', label: { show: false, }, }, } } 阅读全文
posted @ 2021-03-18 10:53 朔雪寒D.A.G 阅读(518) 评论(0) 推荐(0) 编辑
摘要: /** * 获取当前浏览器滚动条宽度 */ export const getScrollbarWidth = () => { // 创建不可见的虚拟容器 const container = document.createElement('div'); container.style.visibili 阅读全文
posted @ 2020-10-16 16:16 朔雪寒D.A.G 阅读(680) 评论(0) 推荐(0) 编辑
摘要: 1、创建使用ts的新项目 yarn create react-app my-test-app --template typescript 2、配置tsconfig.json (1)在根目录下新建文件tsconfig.extend.json { "compilerOptions": { "baseUr 阅读全文
posted @ 2020-05-25 14:51 朔雪寒D.A.G 阅读(4995) 评论(4) 推荐(4) 编辑
摘要: git config credential.helper store(git config --global credential.helper 'cache --timeout 7200' 指定缓存时间) git push 输入账号密码 阅读全文
posted @ 2019-10-20 20:17 朔雪寒D.A.G 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 1、根路径增加.eslintignore文件: build/*.js config/*.js 2、安装依赖: eslint-config-airbnb 3、根路径增加.eslintrc.js文件 module.exports = { "parser": "babel-eslint", "env": 阅读全文
posted @ 2019-08-30 20:43 朔雪寒D.A.G 阅读(2420) 评论(0) 推荐(0) 编辑
摘要: 一、应用场景 如:前端页面配置数据库信息(涉及密码),需保证网络传输中密码始终是密文状态,且前后端加密解密结果应一致(需要约定共同的密钥)。 1、后端返回已有数据库配置信息,此时传回的密码应是密文 2、用户打开已存在的数据库配置 (1)未修改密码点击保存:此时密码仍为密文,无需再次加密 (2)修改了 阅读全文
posted @ 2019-08-02 16:24 朔雪寒D.A.G 阅读(2163) 评论(0) 推荐(0) 编辑
摘要: 类python空判定: // 广义的变量为空判定(undefined, null, 空字符串,空数组,空对象) function isEmpty(obj) { if (obj undefined || obj null) return true; if (obj '') return true; i 阅读全文
posted @ 2019-08-02 16:10 朔雪寒D.A.G 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 参考文档:https://demo.cssworld.cn/3/2-5.php 阅读全文
posted @ 2018-11-09 17:49 朔雪寒D.A.G 阅读(503) 评论(0) 推荐(0) 编辑
摘要: from pandas import ExcelFile import pandas as pd from pandas import ExcelFile import pandas as pd xls = ExcelFile('test.xlsx') df = pd.read_excel(xls, 阅读全文
posted @ 2018-11-02 18:01 朔雪寒D.A.G 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 参考文档:https://stackoverflow.com/questions/1165352/calculate-difference-in-keys-contained-in-two-python-dictionaries class DiffDict(object): """获取两个dict 阅读全文
posted @ 2018-11-02 14:44 朔雪寒D.A.G 阅读(1723) 评论(0) 推荐(0) 编辑