上一页 1 ··· 8 9 10 11 12
摘要: 1,循环遍历 var a=[0,1]; var b=[2,3,4]; for(var i=0;i<b.length;i++){ a.push(b[i]) } console.log(a); //[0,1,2,3,4] 2,数组的concat 方法 var a = [101,102,103] var 阅读全文
posted @ 2020-01-30 22:48 顺· 阅读(1379) 评论(0) 推荐(0) 编辑
摘要: 1,弹性盒(flex)布局 中间 .center 区域设置 flex-grow: 1 或者 width: 100% .container { width: 100%; min-height: 200px; background-color: red; display: flex; } .contai 阅读全文
posted @ 2020-01-30 19:53 顺· 阅读(793) 评论(0) 推荐(0) 编辑
摘要: CSS常用属性: overflow:hidden; //超出的文本隐藏 text-overflow:ellipsis; //溢出用省略号显示 white-space:nowrap; //溢出不换行,只能显示一行 这个只是用适用于单行文本溢出情况,之前处理多行文本的话需要JS来支持。 CSS3新加属性 阅读全文
posted @ 2019-11-15 15:44 顺· 阅读(121) 评论(0) 推荐(0) 编辑
摘要: git config 配置 Git 的相关参数。 Git 一共有3个配置文件: 1. 仓库级的配置文件:在仓库的 .git/.gitconfig,该配置文件只对所在的仓库有效。2. 全局配置文件:Mac 系统在 ~/.gitconfig,Windows 系统在 C:\Users\<用户名>\.git 阅读全文
posted @ 2019-10-12 19:32 顺· 阅读(336) 评论(0) 推荐(0) 编辑
摘要: new 运算符创建一个用户定义的对象类型的实例或具有构造函数的内置对象的实例。new 关键字会进行如下的操作: function Car(make, model, year) { this.make = make; this.model = model; this.year = year;} var 阅读全文
posted @ 2019-09-18 21:37 顺· 阅读(502) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12