06 2020 档案

摘要:Git 全局设置: git config --global user.name "车厘子" git config --global user.email "xxx@outlook.com" 创建 git 仓库: mkdir working cd working git init touch READ 阅读全文
posted @ 2020-06-28 15:57 jingsupo 阅读(164) 评论(0) 推荐(0) 编辑
摘要:在 JavaScript 中, null 用于对象, undefined 用于变量,属性和方法。 对象只有被定义才有可能为 null,否则为 undefined。 如果我们想测试对象是否存在,在对象还没定义时将会抛出一个错误。 正确的方式是我们需要先使用 typeof 来检测对象是否已定义: if 阅读全文
posted @ 2020-06-24 11:35 jingsupo 阅读(4510) 评论(0) 推荐(3) 编辑
摘要:// 对日期进行升序排序 arr.sort(function (a, b) {return Date.parse(a) - Date.parse(b);}); 阅读全文
posted @ 2020-06-23 11:37 jingsupo 阅读(1647) 评论(0) 推荐(0) 编辑
摘要:// 过滤掉数组中的空字符串 arr= arr.filter((x) => x !== ''); // 删除数组中的指定元素 arr= arr.filter((x) => x !== '待删除元素'); 阅读全文
posted @ 2020-06-23 11:34 jingsupo 阅读(6151) 评论(0) 推荐(0) 编辑
摘要:In[1]: dic = {'drivechain_1': '前主轴承径向', 'drivechain_10': '发电机非驱动端轴承', 'drivechain_11': '发电机转子', 'drivechain_2': '后主轴承径向', 'drivechain_3': '齿轮箱内齿圈径向', 阅读全文
posted @ 2020-06-19 16:03 jingsupo 阅读(764) 评论(0) 推荐(0) 编辑
摘要:解决Tab切换echarts图表不能正常显示问题: // 绘图div父容器的宽度 let w = $('.figure').width(); $('#fig-t').css('width', w); // 获取父容器的宽度直接赋值给图表以达到宽度100%的效果 $('#fig-f').css('wi 阅读全文
posted @ 2020-06-04 11:29 jingsupo 阅读(910) 评论(0) 推荐(0) 编辑
摘要:以下只是其中一种方法: .figure { height: 1400px; width: calc(100% - 200px); background: white; float: left; } .figure_side { height: 1400px; width: 200px; backgr 阅读全文
posted @ 2020-06-03 09:59 jingsupo 阅读(909) 评论(0) 推荐(0) 编辑
摘要:以下只是其中一种方法: .left { height: 1600px; width: 300px; background: rgb(235,235,235); float: left; } .middle { height: 1600px; background: skyblue; margin-l 阅读全文
posted @ 2020-06-03 09:57 jingsupo 阅读(419) 评论(0) 推荐(0) 编辑

欢迎光临

点击右上角即可分享
微信分享提示