Skip to content

Commit

Permalink
feat: 新增乘法云面试题
Browse files Browse the repository at this point in the history
  • Loading branch information
webpig committed Jan 19, 2021
1 parent 2a6671e commit c0a7fb8
Show file tree
Hide file tree
Showing 8 changed files with 132 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/interview.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ css继承属性

图片懒加载,加载错误处理

vue生命周期

diff算法

vue子组件监听多个属性变化,比如三个,
Expand All @@ -205,3 +207,27 @@ vue子组件监听多个属性变化,比如三个,
基建方面有弄过吗

规划

### 乘法云

css布局,flex相关属性

Promise方法,属性

onclick, addEventListener(好处,优势),冒泡控制

微任务,宏任务,输出顺序(同步,异步),promise.then().then() 和 promise.then()

vue逻辑复用,keep-alive

手写二分查找

输入框中有一串字符,有个字符会造成提交失败,怎么找出这个字符。

301和302的区别

又一个函数,返回a和b的概率分别为21%和79%,写一个新函数,根据a和b的返回概率使得返回c和d的概率都为50%

有两个文件,都有1万行,其中存在重复的内容,找出重复的行数

页面访问时快时慢,怎么排查
22 changes: 22 additions & 0 deletions inherit.js
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()
48 changes: 48 additions & 0 deletions test
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数据结构原理,问你底层实现

{} {}

闭包,平常使用,

模块,私有变量,

节流,防抖

0 comments on commit c0a7fb8

Please sign in to comment.