-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function SuperType(name) { | ||
this.name = name | ||
this.colors = ['red', 'blue', 'green'] | ||
} | ||
|
||
SuperType.prototype.sayName = function() { | ||
console.log(this.name) | ||
} | ||
|
||
function SubType() { | ||
SuperType.call(this) | ||
} | ||
|
||
// const instance1 = new SubType() | ||
const instance1 = new SuperType('a') | ||
const instance2 = new SuperType('b') | ||
|
||
instance2.colors.push('black') | ||
console.log(instance2.colors) | ||
console.log(instance1.colors) | ||
instance1.sayName() | ||
instance2.sayName() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
css: | ||
|
||
BFC,布局,flex(属性)flex-grow shrink basis | ||
隐藏元素 重排重绘 | ||
(浏览器渲染原理) | ||
css继承属性 | ||
|
||
display: none | ||
opacity: | ||
|
||
js: | ||
|
||
原型,原型链,继承 | ||
|
||
数组方法,遍历对象 | ||
判断数组,遍历数组 | ||
for in | ||
for of | ||
|
||
Event loop | ||
打印顺序 | ||
promise 是什么,原理 | ||
|
||
Promise 方法,属性(手写) | ||
.then | ||
all,any,race | ||
async await => generator | ||
Promise | ||
串行 | ||
并发执行(限制数量) | ||
|
||
箭头函数 和 普通函数 | ||
|
||
// 手写 | ||
call apply bind | ||
|
||
数组去重,Set,Map | ||
|
||
Set数据结构原理,问你底层实现 | ||
|
||
{} {} | ||
|
||
闭包,平常使用, | ||
|
||
模块,私有变量, | ||
|
||
节流,防抖 | ||
|