摘要: 功能需求:有时候往往需要一个范围区间显示一个值。 解决思路:一般正常设置,只能一个刻度对应一个值。那么则需要使用两个x轴来解决即可。 1 const xData = ['0', '5', '15', '25', '35', '50', '65', '75', '85', '95', '100']; 阅读全文
posted @ 2021-06-09 14:57 Jspeng 阅读(1331) 评论(0) 推荐(0) 编辑
摘要: Access-Control-Allow-Origin为*的时候,前端设置withCredentials:true,将不能发送cookie到服务端。 此外,前端要发送cookie到服务端,还要 XMLHttpRequest 的 withCredentials 标志设置为 true,且 服务器端的响应 阅读全文
posted @ 2020-09-15 22:28 Jspeng 阅读(1441) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/zyl-Tara/p/10635033.html 阅读全文
posted @ 2020-07-24 17:45 Jspeng 阅读(305) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/jiebba/p/9601626.html https://www.cnblogs.com/wz71014q/p/9004095.html 阅读全文
posted @ 2020-07-24 16:09 Jspeng 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: cd ~ vim .gitconfig 添加 [alias] co = checkout ci = commit br = branch :wq 保存,可以根据自己喜好灵活配置 阅读全文
posted @ 2020-07-20 11:41 Jspeng 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 1、vscode-fileheader添加文件头2、reactjs code snippetsreact 开发的一些简写,提高开发效率3、Path Autocomplete路径提示功能4、git blame安装git后, git blame可以基于git去审查每一行的代码最近一次修改的作者 阅读全文
posted @ 2020-07-17 14:31 Jspeng 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 一,安装以下几个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 阅读(1155) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(3388) 评论(0) 推荐(0) 编辑
摘要: SortableJS--拖拽库,支持触屏和大部分浏览器 vuedraggable--拖拽插件 canvas-toBlob --canvas转为可上传文件 html2canvas --html转canvas moment --date组件 url 的正则表达式:path-to-regexp vue-c 阅读全文
posted @ 2020-01-08 11:22 Jspeng 阅读(553) 评论(0) 推荐(0) 编辑