会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Jspeng
Anything is cheap except the code.
博客园
首页
新随笔
联系
管理
订阅
2021年6月9日
echarts X轴区间柱形图
摘要: 功能需求:有时候往往需要一个范围区间显示一个值。 解决思路:一般正常设置,只能一个刻度对应一个值。那么则需要使用两个x轴来解决即可。 1 const xData = ['0', '5', '15', '25', '35', '50', '65', '75', '85', '95', '100'];
阅读全文
posted @ 2021-06-09 14:57 Jspeng
阅读(1577)
评论(0)
推荐(0)
2020年9月15日
前端跨域携带cookie问题
摘要: Access-Control-Allow-Origin为*的时候,前端设置withCredentials:true,将不能发送cookie到服务端。 此外,前端要发送cookie到服务端,还要 XMLHttpRequest 的 withCredentials 标志设置为 true,且 服务器端的响应
阅读全文
posted @ 2020-09-15 22:28 Jspeng
阅读(1463)
评论(0)
推荐(0)
2020年7月24日
关于最新create-react-app使用react-app-rewired2.x添加webpack配置
摘要: https://www.cnblogs.com/zyl-Tara/p/10635033.html
阅读全文
posted @ 2020-07-24 17:45 Jspeng
阅读(308)
评论(0)
推荐(0)
eslint 配置方案
摘要: https://www.cnblogs.com/jiebba/p/9601626.html https://www.cnblogs.com/wz71014q/p/9004095.html
阅读全文
posted @ 2020-07-24 16:09 Jspeng
阅读(168)
评论(0)
推荐(0)
Eslint常用配置
摘要: 1 "no-alert": 0,//禁止使用alert confirm prompt 2 "no-array-constructor": 2,//禁止使用数组构造器 3 "no-bitwise": 0,//禁止使用按位运算符 4 "no-caller": 1,//禁止使用arguments.call
阅读全文
posted @ 2020-07-24 14:58 Jspeng
阅读(1195)
评论(0)
推荐(0)
2020年7月20日
git 命令简化配置(mac版)
摘要: cd ~ vim .gitconfig 添加 [alias] co = checkout ci = commit br = branch :wq 保存,可以根据自己喜好灵活配置
阅读全文
posted @ 2020-07-20 11:41 Jspeng
阅读(556)
评论(0)
推荐(0)
2020年7月17日
vscode 插件
摘要: 1、vscode-fileheader添加文件头2、reactjs code snippetsreact 开发的一些简写,提高开发效率3、Path Autocomplete路径提示功能4、git blame安装git后, git blame可以基于git去审查每一行的代码最近一次修改的作者
阅读全文
posted @ 2020-07-17 14:31 Jspeng
阅读(629)
评论(0)
推荐(0)
2020年7月15日
vscode 之代码格式化
摘要: 一,安装以下几个vscode插件 1、Eslint 2、prettier 3、Vetur 二,在vscode Setting.json文件中加入一下配置 { // tab 大小为2个空格 "editor.tabSize": 2, // 100 列后换行 "editor.wordWrapColumn"
阅读全文
posted @ 2020-07-15 12:20 Jspeng
阅读(1214)
评论(0)
推荐(0)
2020年7月8日
echarts tooltip悬浮提示框 formatter
摘要: tooltip: { trigger: 'axis', axisPointer: { type: 'cross' }, formatter: params => { var res = params[0].name; for (var i = 0; i < params.length; i++) {
阅读全文
posted @ 2020-07-08 15:52 Jspeng
阅读(3422)
评论(0)
推荐(0)
2020年1月8日
vue常用组件
摘要: SortableJS--拖拽库,支持触屏和大部分浏览器 vuedraggable--拖拽插件 canvas-toBlob --canvas转为可上传文件 html2canvas --html转canvas moment --date组件 url 的正则表达式:path-to-regexp vue-c
阅读全文
posted @ 2020-01-08 11:22 Jspeng
阅读(608)
评论(0)
推荐(0)
下一页
公告