摘要: 1.for in 循环 迭代对象的所有可枚举属性,给出属性名称1 let obj = {a:1,b:2,c:3} 2 for(let prop in obj){ 3 console.log(obj[prop]);//用来遍历对象 4 }//1,2,3 2.for of 循环 循环数组 1 let a 阅读全文
posted @ 2020-08-01 17:03 一路-前行 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 严格模式(strict mode) 设立目的:1、消除js语法中一些不合理、不严谨之处,减少一些怪异行为 2、提高编译器效率,提高运行速度 3、保证代码运行安全 进入严格模式标志 ‘use strict’ 分为全局和局部 全局模式:即‘use strict’ 在整个脚本的第一行,整个脚本都以“严格模 阅读全文
posted @ 2020-08-01 17:01 一路-前行 阅读(233) 评论(0) 推荐(0) 编辑
摘要: git remote add origin https://gitee.com/zoutuan/finance_cabinet.git git push -u origin master 阅读全文
posted @ 2020-08-01 16:59 一路-前行 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 当echarts中数据过多,为其添加横向滚动条,在其配置中添加如下代码 dataZoom: [ { show: true, realtime: true, start: 0, end: 50 }, { type: 'inside', realtime: true, start: 0, end: 50 阅读全文
posted @ 2020-08-01 16:56 一路-前行 阅读(10191) 评论(0) 推荐(0) 编辑
摘要: 可以通过一下来获取时间戳 js获取当前时间戳, var timestamp = (new Date()).valueOf();ant design vue 时间选择器到最大日期 disabledEndDate (endValue) { const startValue = new Date() if 阅读全文
posted @ 2020-08-01 16:53 一路-前行 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 向数组中每一项添加一个新的属性 使用$set方法,向数组中添加name属性,后面的name为要添加的数据 this.dataDay为要遍历的数组 this.dataDay.forEach(item => { this.$set(item, 'name', name) }) 阅读全文
posted @ 2020-08-01 16:41 一路-前行 阅读(2012) 评论(0) 推荐(0) 编辑
摘要: 在ant design vue中,表格头部样式要设置在ant-table-body中 .ant-table-thead > tr > th { // background: #fff !important; white-space: nowrap !important; // 防止IE等浏览器不支持 阅读全文
posted @ 2020-08-01 16:39 一路-前行 阅读(12779) 评论(0) 推荐(0) 编辑
摘要: 一、字符串的检索方法 1.charAt(index) 返回字符串中index位置的字符,如果没有返回空 2.charCodeAt() 返回字符串中index位置的字符编码 3.indexOf('需要查找字符') 从左向右搜索需要查找的字符,返回字符的位置,返回值为number,如果不存在,就返回-1 阅读全文
posted @ 2020-05-25 22:41 一路-前行 阅读(5001) 评论(0) 推荐(0) 编辑
摘要: 1.git status 查看当前仓库状态 2.git add 将文件添加到暂存区 3.git commit 将暂存区的内容提交到本地仓库(即当前分支) 分支的相关命令 创建分支:git branch 分支名 查看分支:git branch 切换分支:git checkout 分支名 创建并切换分支 阅读全文
posted @ 2020-05-08 10:20 一路-前行 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 在文章开始之前,先介绍一下排序算法里面的一些术语 1、稳定排序:如果 a 原本排在 b 的前面,且a == b,排序之后 a 仍然在 b 的前面,则为稳定排序。 2、非稳定排序:如果 a 原本排在 b 的前面,且 a == b,排序之后 a 可能不在 b 的前面,则为非稳定排序。 3、原地排序:就是 阅读全文
posted @ 2020-03-12 01:12 一路-前行 阅读(190) 评论(0) 推荐(0) 编辑