Posts
All the articles I've posted.
apply 与 call
Published: at 08:00call方法使用一个指定的this值和单独给出的一个或多个参数来调用一个函数。 apply使用一个指定的this值和一个参数数组或类数组来调用一个函数。 这两个函数的第一个参数都是指定的this值,apply的第二个参数是array,而call的第二个到第N个参数就是第二个到第N个参数。
Set 与 Map 数据结构
Published: at 08:00ES6新提供的数据结构Set。类似数组,但是所有成员都是唯一的,没有重复值。 属性 - Set.prototype.constructor: 构造函数 - Set.prototype.size: 返回实例成员总数
ES6 对象的扩展
Published: at 08:00ES6 允许直接写入变量和函数,作为对象的属性和方法,这样的书写更加简洁。 ```js var foo = 'bar'; var baz1 = { foo }; console.log(baz);
前端工程师的职业规划
Published: at 08:001. 分级:初级、中级、资深、架构师、项目负责人 2. 能力层次: 前端能力(50%),后端能力(25%),业务能力(25%)T字型。 3. 综合素质:软技能、项目经验,沟通组织
ES6 字符串的扩展
Published: at 08:00- 字符的 Unicode 表示法 - codePointAt() - String.fromCodePoint() - 字符串的遍历器接口 - at() - normalize()
rem 适配方案
Published: at 08:00rem和em都是相对单位,CSS3引入rem。 :::tip em作为font-size的单位时,代表父元素的字体大小。**em作为其他属性的单位时,代表自身字体大小。**
let 和 const
Published: at 08:00```js 'use strict'; { let a = 10; var b = 1; } console.log(a); // Uncaught ReferenceError: a is not defined
常用的布局实现
Published: at 08:00- 左右布局 - 上左右布局 - 上左中右布局 <iframe height="265" style="width: 100%;" scrolling="no" title="layout-float" src="https://codepen.io/llccing/embed/vYYyoQM?he
inline-block 详解
Published: at 08:001. 能够设置宽高 2. inline-block各个元素,高度不同时,以文本基线对齐,通过vertical-align:top;实现顶部对齐 <iframe height="265" style="width: 100%;" scrolling="no" title="float vs inlin
Annual Summary 16-18
Published: at 22:1416年毕业,初八就到了北京,人生地不熟,如何闲鱼翻身进大厂成为打工人呢。