
前端面试
H_x
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2020年秋招前端面试题
字节(商业变现)一面 说说flex布局、以及以下属性flex-shrink/flex-grow/align-items 说说数组有哪些方法,然后问了一道reduce方法的题 [‘x’, ‘v’, ‘sss’] => { x: true, v: true, … }把左边的数组变成右边对象的形式 用new的形式创建的对象和直接调用方法的形式有啥区别 function Person(name){ this.name = name; return { } } const a =原创 2020-10-28 17:32:34 · 920 阅读 · 3 评论 -
前端面试题:正则表达式以及replace的使用
题目: function template(tmpl, data) { // your code } template('我的名字是{{name}},我的工作是{{work}},我喜欢{{work}}', { name: '小周', work: '编程' }); // 函数的返回是 '我的名字是小周,我的工作是编程,我喜欢编程' 解法1:使用正则表达式以及replace...原创 2020-04-21 21:21:21 · 543 阅读 · 0 评论