{"id":13496362,"url":"https://github.com/shfshanyue/Daily-Question","last_synced_at":"2025-03-28T18:31:56.230Z","repository":{"id":37430967,"uuid":"218952250","full_name":"shfshanyue/Daily-Question","owner":"shfshanyue","description":"互联网大厂内推及大厂面经整理，并且每天一道面试题推送。每天五分钟，半年大厂中","archived":false,"fork":false,"pushed_at":"2024-05-21T05:06:57.000Z","size":29692,"stargazers_count":5006,"open_issues_count":768,"forks_count":510,"subscribers_count":123,"default_branch":"master","last_synced_at":"2025-03-27T20:08:29.043Z","etag":null,"topics":["devops","fe-interview","frontend-interview","interview","interview-questions","js","linux","microservice"],"latest_commit_sha":null,"homepage":"https://q.shanyue.tech","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shfshanyue.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"roadmap/code.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-01T09:11:18.000Z","updated_at":"2025-03-26T10:16:07.000Z","dependencies_parsed_at":"2024-01-14T14:38:13.695Z","dependency_job_id":"9526f449-fd33-4605-a789-9933ab5a953f","html_url":"https://github.com/shfshanyue/Daily-Question","commit_stats":{"total_commits":307,"total_committers":8,"mean_commits":38.375,"dds":0.0456026058631922,"last_synced_commit":"cebb0f1a04a1ae12006fdea4820783859904fc78"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shfshanyue%2FDaily-Question","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shfshanyue%2FDaily-Question/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shfshanyue%2FDaily-Question/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shfshanyue%2FDaily-Question/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shfshanyue","download_url":"https://codeload.github.com/shfshanyue/Daily-Question/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246080724,"owners_count":20720577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devops","fe-interview","frontend-interview","interview","interview-questions","js","linux","microservice"],"created_at":"2024-07-31T19:01:46.793Z","updated_at":"2025-03-28T18:31:56.210Z","avatar_url":"https://github.com/shfshanyue.png","language":"Vue","funding_links":[],"categories":["Vue","TypeScript",":file_folder:Knowledge"],"sub_categories":["Tools"],"readme":"# 日问\n\n\u003c!-- + [山月的博客点击这里](https://github.com/shfshanyue/blog) --\u003e\n+ [一日一题官方网站点击这里](https://q.shanyue.tech)\n+ [一日一题 bilibili 讲解点击这里](https://space.bilibili.com/28696526)，每天晚上九点十分B站直播讲解面试题。\n\n\u003e 勤学如春起之苗，不见其增，日有所长；辍学如磨刀之石，不见其损，日有所亏。\n\n每天至少一个前端面试题，并附以答案及讨论。每天五分钟，半年大厂中，促进个人职业成长，敲开大厂之门。日问致力做到有问题、有答案、有代码、有视频讲解。\n\n以诸葛武侯的诫子书与君共勉:\n\n\u003e 夫君子之行，静以修身，俭以养德。非澹泊无以明志，非宁静无以致远。夫学须静也，才须学也，非学无以广才，非志无以成学。淫慢则不能励精，险躁则不能治性。**年与时驰，意与日去，遂成枯落，多不接世，悲守穷庐，将复何及！**\n\n## CodeSandbox 示例集\n\n由于在 `CodeSandBox` 无法以收藏夹的方式共享，我把其中涉及到有关代码的示例列举在这里\n\n1. [React.memo 和性能优化](https://codesandbox.io/s/zujianxiasuoyouzizujianhuifashengchongxinxuanran-bv70e)。当某个组件状态更新时，它的所有子组件树将会重新渲染。\n1. [React.memo 和记忆化数据](https://codesandbox.io/s/reactmemo-and-memo-1dt59)\n1. [React.memo 和 React.useMemo 优化性能](https://codesandbox.io/s/reactmemo-and-reactusememo-79txp)\n1. [React.memo 和 React.useCallback 优化性能](https://codesandbox.io/s/reactusecallback-and-perf-d3k6s)\n1. [React useEffect cleanup](https://codesandbox.io/s/useeffect-clean-i2fi3?file=/src/App.js)。在这段代码中，示例演示 cleanup 的时机\n1. [React 中可以以数组的 index 作为 key 吗?](https://codesandbox.io/s/react-key-shuzudeindex-nl47k)。在这段代码中，使用 index 作为 key，其中夹杂了 input，引发 bug\n1. [React 中以数组的 index 作为 key](https://codesandbox.io/s/index-as-key-yichangshili-pfmpk)。在这段代码中，使用 index 作为 key，其中夹杂了随机数，引发了 bug\n1. [React 兄弟组件通信](https://codesandbox.io/s/react-xiongdizujiantongxin-f2jf6)。兄弟组件在 React 中如何通信\n1. [React 中合成事件](https://codesandbox.io/s/syntheticevent-249x1)。React 中事件为合成事件，你可以通过 `e.nativeEvent` 获取到原生事件，观察 `e.nativeEvent.currentTarget` 你将会发现 React 将所有事件都绑定在了 `#app`(React 应用挂载的根组件)\n1. [React 中 input.onChange 的原生事件是什么？](https://codesandbox.io/s/input-onchange-1ybhw)。观察 `e.nativeEvent.type` 可知\n1. [React hooks 如何实现一个计数器 Counter](https://codesandbox.io/s/shiyong-react-hooks-ruheshixianyigejishuqi-counter-tc5u1)\n1. [React FiberNode 数据结构](https://codesandbox.io/s/fibernode-diaoshixinxi-rqt78)。贯彻 `element._owner` 可知 FiberNode 数据结构\n1. [React 点击按钮时自增三次](https://codesandbox.io/s/react-setstate-dianjianniuzizengsanci-b4j29)。此时需使用回调函数，否则会报错\n1. [React 不可变数据的必要性](https://codesandbox.io/s/react-bukebianduixiangzhihanshuzujian-zppgm)。\n1. [React 不可变数据的必要性之函数组件](https://codesandbox.io/s/react-todo-setstate-bukebianduixiang-r7qof)。当在 React hooks 中 setState 两次为相同数据时，不会重新渲染\n1. [React 状态批量更新之事件处理](https://codesandbox.io/s/react-state-pilianggengxin-826iv)。事件处理中的状态会批量更新，减少渲染次数\n1. [React 状态批量更新之异步请求](https://codesandbox.io/s/react-state-pilianggengxiner-jzu52)。异步请求中的状态不会批量更新，将会造成多次渲染\n1. [React18 状态批量更新](https://codesandbox.io/s/react18-state-pilianggengxin-75ktu)。在 React 18 中所有状态将会批量更新\n1. [React capture value](https://codesandbox.io/s/react-capture-value-ft06r)\n\n## Codepen 示例集\n\n+ [前端大厂面试指南](https://codepen.io/collection/MggMed?grid_type=list)\n\n## 特别赞助\n\n[**开发者武器库**](https://devtool.tech/)\n\n## 大厂内推\n\n添加微信 `shanyue94`，免费大厂内推。\n\n+ [阿里-供应链平台事业部-前端-校招/社招](https://q.shanyue.tech/infer/ali-ascp.html)\n+ [字节-视频架构组-前端-社招](https://q.shanyue.tech/infer/toutiao-media-arch.html)\n+ [腾讯-CSIG智慧零售-前端-社招](https://q.shanyue.tech/infer/tencent-csig.html)\n+ ...\n\n## 大厂面经\n\n### 阿里\n\n+ [16年毕业的前端er在杭州求职ing](https://juejin.im/post/5a64541bf265da3e2d338862)\n+ [面试分享：专科半年经验面试阿里前端P6+总结(附面试真题及答案)](https://juejin.im/post/5a92c23b5188257a6b06110b)\n+ [三年前端，面试思考（头条蚂蚁美团offer）](https://juejin.im/post/5bd97627f265da39651c0a4b)\n\n更多面经请转至 [大厂面经大全](https://q.shanyue.tech/interviews/fe.html)\n\n### 头条\n\n+ [字节跳动今日头条前端面经（4轮技术面+hr面](https://juejin.im/post/5e6a14b1f265da572978a1d3)\n+ [字节跳动 前端校招 一二三面+hr面](https://juejin.im/post/5e61136ee51d4527196d6019)\n+ [半年工作经验今日头条和美团面试题面经分享](https://juejin.im/post/5b03e79951882542891913e8)\n\n更多面经请转至 [大厂面经大全](https://q.shanyue.tech/interviews/fe.html)\n\n### 腾讯\n\n+ [腾讯前端面试篇（一）](https://juejin.im/post/5c19c1b6e51d451d1e06c163)\n+ [腾讯校招前端三面,虐完继续撸|掘金技术征文](https://juejin.im/post/59c907d46fb9a00a4746e2db)\n+ [鹅厂视频部笔试及面试问题整理](https://juejin.im/post/5b2cd3f7e51d4558a75e857a)\n\n更多面经请转至 [大厂面经大全](https://q.shanyue.tech/interviews/fe.html)\n\n\u003c!-- ## 大厂内推与大厂面经推送\n\n如果你想在网站及公众号上发布招聘，请添加我的微信 `shanyue94`，我将与你在以下几个方面进行讨论，并共同拟定模拟面试题在我公众号上发布招聘信息\n\n1. 业务描述，及其业务发展与前景\n1. 职位描述，及其技术侧重于偏向 --\u003e\n\n\u003c!-- ## 时间线\n\n+ 2019.11.01 - 添加第一道题\n+ 2019.11.04 - 添加 Readme\n+ 2019.11.07 - 第1个 star\n+ 2019.11.12 - 第8个 star\n+ 2019.11.16 - 第16个 star\n+ 2019.11.26 - 第32个 star\n+ 2019.12.02 - 用周日一天的时间使用 Issues 自动生成了官网\n+ 2019.12.03 - 第64个 star\n+ 2019.12.05 - 第100道题\n+ 2019.12.08 - 第128道题\n+ 2021.07-24 - 第666道题 --\u003e\n\n\u003c!-- ## 官方网站\n\n[日问网站](https://q.shanyue.tech) 的技术栈由 `vuepress` + `github GraphQL api` + `github actions` + `alioss` + `alicdn` 组成。具体流程在[如果你只想搭建一个博客](https://shanyue.tech/no-vps/if-you-want-a-blog.html)中可窥一二。\n\n每当创建问题与回答问题时，官网将由 `github actions` 自动构建，并自动部署上线。当然，因为构建以及CDN刷新可能需要一些时间。至于更多的影响因素可以参考问题 [【Q094】你们的前端代码上线部署一次需要多长时间，需要人为干预吗](https://github.com/shfshanyue/Daily-Question/issues/95) --\u003e\n\n## 交流\n\n我是山月，你可以添加微信 `shanyue94` 与我交流，另外欢迎关注我的博客[山月行](https://shanyue.tech/)，我会在其中分享工作中遇到的一些前后端问题以及思考。\n\n\n\u003c!-- 社交: --\u003e\n\n\u003c!-- | [Github](https://github.com/shfshanyue) | [知乎](https://www.zhihu.com/people/shfshanyue) | [掘金](https://juejin.cn/user/1556564164489389) | [博客](https://shanyue.tech) | [B站](https://space.bilibili.com/28696526/) | --\u003e\n\u003c!-- |-----------------------------------------|-----------------------------------------------|-----------------------------------------------|----------------------------|--------------------------------------------| --\u003e\n\n\n\u003c!-- 项目: --\u003e\n\n\u003c!-- | [极客时间返利](https://geek.shanyue.tech/) | [前端面试每日一题](https://q.shanyue.tech/)      | [诗词集](https://shici.xiange.tech)    | --\u003e\n\u003c!-- |------------------------------------|--------------------------------------|-------------------------------------| --\u003e\n\u003c!-- | [开发者工具箱](https://devtool.tech)     | [npm 在线执行](https://npm.devtool.tech) | [前端周刊](https://weekly.shanyue.tech) | --\u003e\n\u003c!-- | [一纸简历](https://cv.devtool.tech)     | [码途编辑器](https://markdown.devtool.tech) | [云吸一只猫](https://cat.shanyue.tech) | --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshfshanyue%2FDaily-Question","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshfshanyue%2FDaily-Question","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshfshanyue%2FDaily-Question/lists"}