26

前端面试每日interview-answe更新

 3 years ago
source link: http://mp.weixin.qq.com/s?__biz=MzI1NTcxOTQ1Nw%3D%3D&%3Bmid=2247488801&%3Bidx=3&%3Bsn=17568e4fa125c37278d1b73d352e3f01
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

[html] 如何放大点击的区域?

<div class="button">点我</div>


<style>


.button{


position:relative;


}


.button::after{


content:"";


position:absolute;


top:-10px;


left:-10px;


right:-10px;


bottom:-10px;


}

</style>即可实现

————————————————

[css] 如何使用伪元素实现增大点击热区来增加用户体验?

[js] fetch和axios请求的原理都是基于XMLHttpRerequst吗?

axios和fetch其实算是XMLHttpRequest的封装,你可以去查看它们的源码,都会new这个XMLHttpRequest对象。

[软技能] node的事件循环和浏览器的事件循环有什么区别?

浏览器环境下:


while (true) {

宏任务队列.shift();

微任务队列全部任务();

}


Node 环境下:


while (true) {

loop.forEach((阶段) => {

阶段全部任务();

nextTick全部任务();

microTask全部任务();

});

loop = loop.next;

}

【Suggest :+1: 】front end of the interview, more answers to interview - answe 1 + 1, advocate the daily learning and thinking, a little progress every day! Dachang advanced front end test paper arrangement (stoop, please everyone)

前端面试日更解答 interview-answe 1+1

https://github.com/webVueBlog/interview-answe

了方便进行探讨和交流,我为大家建立了一个读者群,一起学习,一起进步。

3u6vM3n.jpg!web

:heart:爱心三连击

1.看到这里了就点个在看支持下吧,你的 「在看」 是我创作的动力。

2.关注公众号 达达前端「每天为您分享原创或精选文章」

3.特殊阶段,带好口罩,做好个人防护。

4.添加微信【xiaoda0423】,拉你进 技术交流群 一起学习

扫码关注公众号,订阅更多精彩内容。

aQbm6nv.png!web

好文章,我 在看 :heart:


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK