issues
search
zhaofeihao
/
no-cross-no-crown
Nothing so bad, as not to be good for something.
MIT License
5
stars
1
forks
source link
[面经]-[滴滴]-[网约车技术中台]-[2020.04.03]
#22
Open
zhaofeihao
opened
4 years ago
zhaofeihao
commented
4 years ago
一面
1. 介绍项目
前端数据处理有没有用到 node
2. 说一下研究生期间的课题和项目
3. 为什么离职
4. 说一下 React 和 Vue 的异同,优缺点,适用场景
设计思想
react主张函数式编程,所以推崇纯组件,数据不可变,单向数据流,当然需要双向的地方也可以手动实现,比如借助 onChange 和 setState 来实现一个双向的数据流。
vue是基于可变数据的,支持双向绑定,它提供了v-model这样的指令来实现文本框的数据流双向绑定。
编写语法
react是没有模板的,直接就是一个渲染函数,它中间返回的就是一个虚拟DOM树,React推荐的做法是 JSX + inline style, 也就是把HTML和CSS全都写进JavaScript了,即'all in js'。JSX实际就是一套使用XML语法,用于让我们更简单地去描述树状结构的语法糖。在react中,所有的组件的渲染功能都依靠JSX。你可以在render()中编写类似XML的语法,它最终会被编译成原生JavaScript。
Vue采用单文件组件格式,html、css、js分离,数据绑定使用mustache风格,样式直接使用css。其中
一面
1. 介绍项目
前端数据处理有没有用到 node
2. 说一下研究生期间的课题和项目
3. 为什么离职
4. 说一下 React 和 Vue 的异同,优缺点,适用场景
设计思想
编写语法