Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上海证卷交易所前端面试 #1

Open
pro-xiaoy opened this issue Jul 6, 2018 · 0 comments
Open

上海证卷交易所前端面试 #1

pro-xiaoy opened this issue Jul 6, 2018 · 0 comments

Comments

@pro-xiaoy
Copy link

2017.12上交所前端面试

  1. Q:看你的项目经验是不是写过用过vue,那么请问vue的实现原理是什么?

A: Object.defineprotype的set和get属性进行数据变化的监听

  1. Q:vue的生命周期分为那几个部分?

A: 八个步骤,creat-mounted-updata-destroyed;每个阶段分为两个过程;

  1. Q:项目中用过ele-ui,请问里面的el-col,请问原理是什么?

A: ele-ui的源码上面显示的百分比,但是我对比一下其他的框架比如bootstrapt,里面应该是百分比和@media

  1. Q:说下click和touchmove区别?

A: touch主要应用于移动端,因为click在移动端的时候会有300MS的延时。

  1. Q:swiper的框架实现原理

A:自己瞎编的答案,我猜是记录位置用touchStart和touchEnd记录两点位置。

实话实说,那次面试距离现在也有半年,印象中的就是这些,当然面试是过了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant