以下問題很多都沒勁,只作為**知識點梳理、知識點梳理、知識點梳理**,**千萬別背**、**千萬別背**、**千萬別背**框架的這些面試題,沒意思。
1.說說對 Vue漸進式框架的理解(騰訊醫典)
a. 漸進式的含義:主張最少, 沒有多做職責之外的事
b. Vue 有些方面是不如 React,不如 Angular.但它是漸進的,沒有強主張,你可以在原有系統的上面,把一兩個組件改用它實現,當 jQuery用;
c. 也可以整個用它全家桶開發,當 Angular 用;還可以用它的視圖,搭配 你自己設計的整個下層用。
d. 你可以在底層數據邏輯的地方用 OO和設計模式的那套理念,也可以函數式,都可以,它只是個輕量視圖而已,只做了自己該做的事,沒有做不該做的事,僅此而已。
[TOC]
2.vue 的雙向綁定的原理(騰訊醫典)
a. 數據雙向綁定是通過數據劫持結合發布者-訂閱者模式的方式來實現的。
b. 具體實現流程:
i.實現一個監聽器 Observer,用來劫持并監聽所有屬性,如果有變動的,就通知訂閱者
ii.實現一個訂閱者 Watcher,可以收到屬性的變化通知并執行相應的函數,從而更新視圖
iii.實現一個解析器 Compile,可以掃描和解析每個節點的相關指令,并根據初始化模板數據以及初始化相應的訂閱器
[TOC]
3、Key的作用是什么?可以用數組的 index(下標)代替么?(美團)
a. key的作用主要是為了高效的更新虛擬 DOM。另外 vue中在使用相同標簽 名元素的過渡切換時,也會使用到 key屬性,其目的也是為了讓 vue可以區分它們。否則 vue只會替換其內部屬性而不會觸發過渡效果
b. key不能用 index代替,index在同一個頁面會有重復的情況,違背了高效渲染的初衷。
[TOC]
4、Vue 組件中 data 為什么必須是函數?(58同城)
a. 在 new Vue() ,data是可以作為一個對象進行操作 的 , 然而在 component 中,data只能以函數的形式存在,不能直接將對象賦值給它。
b.當 data選項是一個函數的時候,每個實例可以維護一份被返回對象的獨立的拷貝,這樣各個實例中的 data不會相互影響,是獨立的。
[TOC]
5、$route和 $router 的區別是什么?(深信服)
a. $router為 VueRouter的實例,是一個全局路由對象,包含了路由跳轉的方 法、鉤子函數等。
b. $route 是路由信息對象||跳轉的路由對象,每一個路由都會有一個 route對象,是一個局部對象,包含 path,params,hash,query,fullPath,matched,name等路由信息參數。
### vue
* [從0到1自己構架一個vue項目,說說有哪些步驟、哪些重要插件、目錄結構你會怎么組織](https://github.com/haizlin/fe-interview/issues/983)
* [你知道vue的模板語法用的是哪個web模板引擎的嗎?說說你對這模板引擎的理解](https://github.com/haizlin/fe-interview/issues/561)
* [你知道v-model的原理嗎?說說看](https://github.com/haizlin/fe-interview/issues/560)
* [你有使用過vue開發多語言項目嗎?說說你的做法?](https://github.com/haizlin/fe-interview/issues/559)
* [在使用計算屬性的時,函數名和data數據源中的數據可以同名嗎?](https://github.com/haizlin/fe-interview/issues/558)
* [vue中data的屬性可以和methods中的方法同名嗎?為什么?](https://github.com/haizlin/fe-interview/issues/557)
* [怎么給vue定義全局的方法?](https://github.com/haizlin/fe-interview/issues/556)
* [vue2.0不再支持v-html中使用過濾器了怎么辦?](https://github.com/haizlin/fe-interview/issues/555)
* [怎么解決vue打包后靜態資源圖片失效的問題?](https://github.com/haizlin/fe-interview/issues/554)
* [怎么解決vue動態設置img的src不生效的問題?](https://github.com/haizlin/fe-interview/issues/553)
* [使用vue后怎么針對搜索引擎做SEO優化?](https://github.com/haizlin/fe-interview/issues/552)
* [跟keep-alive有關的生命周期是哪些?描述下這些生命周期](https://github.com/haizlin/fe-interview/issues/551)
* [如果現在讓你從vue/react/angularjs三個中選擇一個,你會選哪個?說說你的理由](https://github.com/haizlin/fe-interview/issues/550)
* [你知道vue2.0兼容IE哪個版本以上嗎?](https://github.com/haizlin/fe-interview/issues/549)
* [使用vue開發一個todo小應用,談下你的思路](https://github.com/haizlin/fe-interview/issues/548)
* [你有看過vue推薦的風格指南嗎?列舉出你知道的幾條](https://github.com/haizlin/fe-interview/issues/547)
* [你是從vue哪個版本開始用的?你知道1.x和2.x有什么區別嗎?](https://github.com/haizlin/fe-interview/issues/546)
* [你知道vue中key的原理嗎?說說你對它的理解](https://github.com/haizlin/fe-interview/issues/545)
* [vue中怎么重置data?](https://github.com/haizlin/fe-interview/issues/544)
* [vue渲染模板時怎么保留模板中的HTML注釋呢?](https://github.com/haizlin/fe-interview/issues/508)
* [Vue.observable你有了解過嗎?說說看](https://github.com/haizlin/fe-interview/issues/507)
* [你知道style加scoped屬性的用途和原理嗎?](https://github.com/haizlin/fe-interview/issues/506)
* [你期待vue3.0有什么功能或者改進的地方?](https://github.com/haizlin/fe-interview/issues/489)
* [vue邊界情況有哪些?](https://github.com/haizlin/fe-interview/issues/478)
* [如何在子組件中訪問父組件的實例?](https://github.com/haizlin/fe-interview/issues/477)
* [watch的屬性用箭頭函數定義結果會怎么樣?](https://github.com/haizlin/fe-interview/issues/476)
* [在vue項目中如果methods的方法用箭頭函數定義結果會怎么樣?](https://github.com/haizlin/fe-interview/issues/475)
* [在vue項目中如何配置favicon?](https://github.com/haizlin/fe-interview/issues/474)
* [你有使用過babel-polyfill模塊嗎?主要是用來做什么的?](https://github.com/haizlin/fe-interview/issues/473)
* [說說你對vue的錯誤處理的了解?](https://github.com/haizlin/fe-interview/issues/472)
* [在vue事件中傳入$event,使用e.target和e.currentTarget有什么區別?](https://github.com/haizlin/fe-interview/issues/471)
* [在.vue文件中style是必須的嗎?那script是必須的嗎?為什么?](https://github.com/haizlin/fe-interview/issues/470)
* [vue怎么實現強制刷新組件?](https://github.com/haizlin/fe-interview/issues/469)
* [vue自定義事件中父組件怎么接收子組件的多個參數?](https://github.com/haizlin/fe-interview/issues/468)
* [實際工作中,你總結的vue最佳實踐有哪些?](https://github.com/haizlin/fe-interview/issues/467)
* [vue給組件綁定自定義事件無效怎么解決?](https://github.com/haizlin/fe-interview/issues/466)
* [vue的屬性名稱與method的方法名稱一樣時會發生什么問題?](https://github.com/haizlin/fe-interview/issues/465)
* [vue變量名如果以\_、$開頭的屬性會發生什么問題?怎么訪問到它們的值?](https://github.com/haizlin/fe-interview/issues/464)
* [vue使用v-for遍歷對象時,是按什么順序遍歷的?如何保證順序?](https://github.com/haizlin/fe-interview/issues/463)
* [vue如果想擴展某個現有的組件時,怎么做呢?](https://github.com/haizlin/fe-interview/issues/462)
* [說下$attrs和$listeners的使用場景](https://github.com/haizlin/fe-interview/issues/461)
* [分析下vue項目本地開發完成后部署到服務器后報404是什么原因呢?](https://github.com/haizlin/fe-interview/issues/460)
* [v-once的使用場景有哪些?](https://github.com/haizlin/fe-interview/issues/459)
* [說說你對vue的表單修飾符.lazy的理解](https://github.com/haizlin/fe-interview/issues/458)
* [vue為什么要求組件模板只能有一個根元素?](https://github.com/haizlin/fe-interview/issues/457)
* [EventBus注冊在全局上時,路由切換時會重復觸發事件,如何解決呢?](https://github.com/haizlin/fe-interview/issues/456)
* [怎么修改vue打包后生成文件路徑?](https://github.com/haizlin/fe-interview/issues/455)
* [你有使用做過vue與原生app交互嗎?說說vue與ap交互的方法](https://github.com/haizlin/fe-interview/issues/454)
* [使用vue寫一個tab切換](https://github.com/haizlin/fe-interview/issues/453)
* [vue中什么是遞歸組件?舉個例子說明下?](https://github.com/haizlin/fe-interview/issues/452)
* [怎么訪問到子組件的實例或者子元素?](https://github.com/haizlin/fe-interview/issues/451)
* [在子組件中怎么訪問到父組件的實例?](https://github.com/haizlin/fe-interview/issues/450)
* [在組件中怎么訪問到根實例?](https://github.com/haizlin/fe-interview/issues/449)
* [說說你對Object.defineProperty的理解](https://github.com/haizlin/fe-interview/issues/448)
* [vue組件里寫的原生addEventListeners監聽事件,要手動去銷毀嗎?為什么?](https://github.com/haizlin/fe-interview/issues/447)
* [vue組件里的定時器要怎么銷毀?](https://github.com/haizlin/fe-interview/issues/446)
* [vue組件會在什么時候下被銷毀?](https://github.com/haizlin/fe-interview/issues/445)
* [使用vue渲染大量數據時應該怎么優化?說下你的思路!](https://github.com/haizlin/fe-interview/issues/444)
* [在vue中使用this應該注意哪些問題?](https://github.com/haizlin/fe-interview/issues/443)
* [你有使用過JSX嗎?說說你對JSX的理解](https://github.com/haizlin/fe-interview/issues/442)
* [說說組件的命名規范](https://github.com/haizlin/fe-interview/issues/441)
* [怎么配置使vue2.0+支持TypeScript寫法?](https://github.com/haizlin/fe-interview/issues/440)
* [`<template></template>`有什么用?](https://github.com/haizlin/fe-interview/issues/439)
* [vue的is這個特性你有用過嗎?主要用在哪些方面?](https://github.com/haizlin/fe-interview/issues/438)
* [vue的:class和:style有幾種表示方式?](https://github.com/haizlin/fe-interview/issues/437)
* [你了解什么是函數式組件嗎?](https://github.com/haizlin/fe-interview/issues/436)
* [vue怎么改變插入模板的分隔符?](https://github.com/haizlin/fe-interview/issues/435)
* [組件中寫name選項有什么作用?](https://github.com/haizlin/fe-interview/issues/434)
* [說說你對provide和inject的理解](https://github.com/haizlin/fe-interview/issues/433)
* [開發過程中有使用過devtools嗎?](https://github.com/haizlin/fe-interview/issues/432)
* [說說你對slot的理解有多少?slot使用場景有哪些?](https://github.com/haizlin/fe-interview/issues/431)
* [你有使用過動態組件嗎?說說你對它的理解](https://github.com/haizlin/fe-interview/issues/430)
* [prop驗證的type類型有哪幾種?](https://github.com/haizlin/fe-interview/issues/429)
* [prop是怎么做驗證的?可以設置默認值嗎?](https://github.com/haizlin/fe-interview/issues/428)
* [怎么緩存當前打開的路由組件,緩存后想更新當前組件怎么辦呢?](https://github.com/haizlin/fe-interview/issues/427)
* [說說你對vue組件的設計原則的理解](https://github.com/haizlin/fe-interview/issues/426)
* [你了解vue的diff算法嗎?](https://github.com/haizlin/fe-interview/issues/425)
* [vue如何優化首頁的加載速度?](https://github.com/haizlin/fe-interview/issues/424)
* [vue打包成最終的文件有哪些?](https://github.com/haizlin/fe-interview/issues/423)
* [ajax、fetch、axios這三都有什么區別?](https://github.com/haizlin/fe-interview/issues/422)
* [vue能監聽到數組變化的方法有哪些?為什么這些方法能監聽到呢?](https://github.com/haizlin/fe-interview/issues/421)
* [vue中是如何使用event對象的?](https://github.com/haizlin/fe-interview/issues/420)
* [vue首頁白屏是什么問題引起的?如何解決呢?](https://github.com/haizlin/fe-interview/issues/366)
* [說說你對單向數據流和雙向數據流的理解](https://github.com/haizlin/fe-interview/issues/365)
* [移動端ui你用的是哪個ui庫?有遇到過什么問題嗎?](https://github.com/haizlin/fe-interview/issues/364)
* [你知道nextTick的原理嗎?](https://github.com/haizlin/fe-interview/issues/363)
* [說說你對v-clock和v-pre指令的理解](https://github.com/haizlin/fe-interview/issues/362)
* [寫出你知道的表單修飾符和事件修飾符](https://github.com/haizlin/fe-interview/issues/361)
* [說說你對proxy的理解](https://github.com/haizlin/fe-interview/issues/359)
* [你有自己用vue寫過UI組件庫嗎?](https://github.com/haizlin/fe-interview/issues/358)
* [用vue怎么實現一個換膚的功能?](https://github.com/haizlin/fe-interview/issues/357)
* [有在vue中使用過echarts嗎?踩過哪些坑?如何解決的?](https://github.com/haizlin/fe-interview/issues/356)
* [如果讓你教一個2-3年經驗前端經驗的同事使用vue,你該怎么教?](https://github.com/haizlin/fe-interview/issues/355)
* [vue性能的優化的方法有哪些?](https://github.com/haizlin/fe-interview/issues/354)
* [SSR解決了什么問題?有做過SSR嗎?你是怎么做的?](https://github.com/haizlin/fe-interview/issues/353)
* [說說你覺得認為的vue開發規范有哪些?](https://github.com/haizlin/fe-interview/issues/352)
* [vue部署上線前需要做哪些準備工作?](https://github.com/haizlin/fe-interview/issues/350)
* [vue過渡動畫實現的方式有哪些?](https://github.com/haizlin/fe-interview/issues/349)
* [vue在created和mounted這兩個生命周期中請求數據有什么區別呢?](https://github.com/haizlin/fe-interview/issues/348)
* [vue父子組件雙向綁定的方法有哪些?](https://github.com/haizlin/fe-interview/issues/347)
* [vue怎么獲取DOM節點?](https://github.com/haizlin/fe-interview/issues/346)
* [vue項目有做過單元測試嗎?](https://github.com/haizlin/fe-interview/issues/345)
* [vue項目有使用過npm run build --report嗎?](https://github.com/haizlin/fe-interview/issues/344)
* [如何解決vue打包vendor過大的問題?](https://github.com/haizlin/fe-interview/issues/343)
* [webpack打包vue速度太慢怎么辦?](https://github.com/haizlin/fe-interview/issues/342)
* [vue在開發過程中要同時跟N個不同的后端人員聯調接口(請求的url不一樣)時你該怎么辦?](https://github.com/haizlin/fe-interview/issues/341)
* [vue要做權限管理該怎么做?如果控制到按鈕級別的權限怎么做?](https://github.com/haizlin/fe-interview/issues/340)
* [說下你的vue項目的目錄結構,如果是大型項目你該怎么劃分結構和劃分組件呢?](https://github.com/haizlin/fe-interview/issues/339)
* [在移動端使用vue,你覺得最佳實踐有哪些?](https://github.com/haizlin/fe-interview/issues/338)
* [你們項目為什么會選vue而不選擇其它的框架呢?](https://github.com/haizlin/fe-interview/issues/337)
* [對于即將到來的vue3.0特性你有什么了解的嗎?](https://github.com/haizlin/fe-interview/issues/336)
* [vue開發過程中你有使用什么輔助工具嗎?](https://github.com/haizlin/fe-interview/issues/335)
* [vue和微信小程序寫法上有什么區別?](https://github.com/haizlin/fe-interview/issues/334)
* [怎么緩存當前的組件?緩存后怎么更新?](https://github.com/haizlin/fe-interview/issues/333)
* [你了解什么是高階組件嗎?可否舉個例子說明下?](https://github.com/haizlin/fe-interview/issues/332)
* [為什么我們寫組件的時候可以寫在.vue里呢?可以是別的文件名后綴嗎?](https://github.com/haizlin/fe-interview/issues/331)
* [vue-loader是什么?它有什么作用?](https://github.com/haizlin/fe-interview/issues/330)
* [說說你對vue的extend(構造器)的理解,它主要是用來做什么的?](https://github.com/haizlin/fe-interview/issues/329)
* [如果將axios異步請求同步化處理?](https://github.com/haizlin/fe-interview/issues/328)
* [怎么捕獲組件vue的錯誤信息?](https://github.com/haizlin/fe-interview/issues/327)
* [為什么vue使用異步更新組件?](https://github.com/haizlin/fe-interview/issues/326)
* [如何實現一個虛擬DOM?說說你的思路](https://github.com/haizlin/fe-interview/issues/325)
* [寫出多種定義組件模板的方法](https://github.com/haizlin/fe-interview/issues/324)
* [SPA單頁面的實現方式有哪些?](https://github.com/haizlin/fe-interview/issues/323)
* [說說你對SPA單頁面的理解,它的優缺點分別是什么?](https://github.com/haizlin/fe-interview/issues/322)
* [說說你都用vue做過哪些類型的項目?](https://github.com/haizlin/fe-interview/issues/321)
* [在vue項目中如何引入第三方庫(比如jQuery)?有哪些方法可以做到?](https://github.com/haizlin/fe-interview/issues/320)
* [使用vue手寫一個過濾器](https://github.com/haizlin/fe-interview/issues/319)
* [你有使用過render函數嗎?有什么好處?](https://github.com/haizlin/fe-interview/issues/318)
* [寫出你常用的指令有哪些?](https://github.com/haizlin/fe-interview/issues/317)
* [手寫一個自定義指令及寫出如何調用](https://github.com/haizlin/fe-interview/issues/316)
* [組件進來請求接口時你是放在哪個生命周期?為什么?](https://github.com/haizlin/fe-interview/issues/315)
* [你有用過事件總線(EventBus)嗎?說說你的理解](https://github.com/haizlin/fe-interview/issues/314)
* [說說vue的優缺點分別是什么?](https://github.com/haizlin/fe-interview/issues/313)
* [DOM渲染在哪個周期中就已經完成了?](https://github.com/haizlin/fe-interview/issues/312)
* [第一次加載頁面時會觸發哪幾個鉤子?](https://github.com/haizlin/fe-interview/issues/311)
* [vue生命周期總共有幾個階段?](https://github.com/haizlin/fe-interview/issues/310)
* [vue生命周期的作用是什么?](https://github.com/haizlin/fe-interview/issues/309)
* [vue和angular有什么區別呢?](https://github.com/haizlin/fe-interview/issues/308)
* [如何引入scss?引入后如何使用?](https://github.com/haizlin/fe-interview/issues/307)
* [使用vue開發過程你是怎么做接口管理的?](https://github.com/haizlin/fe-interview/issues/306)
* [為何官方推薦使用axios而不用vue-resource?](https://github.com/haizlin/fe-interview/issues/305)
* [你了解axios的原理嗎?有看過它的源碼嗎?](https://github.com/haizlin/fe-interview/issues/304)
* [你有封裝過axios嗎?主要是封裝哪方面的?](https://github.com/haizlin/fe-interview/issues/303)
* [如何中斷axios的請求?](https://github.com/haizlin/fe-interview/issues/302)
* [axios是什么?怎樣使用它?怎么解決跨域的問題?](https://github.com/haizlin/fe-interview/issues/301)
* [說說你對vue的template編譯的理解?](https://github.com/haizlin/fe-interview/issues/292)
* [v-on可以綁定多個方法嗎?](https://github.com/haizlin/fe-interview/issues/291)
* [vue常用的修飾符有哪些?列舉并說明](https://github.com/haizlin/fe-interview/issues/290)
* [你認為vue的核心是什么?](https://github.com/haizlin/fe-interview/issues/289)
* [v-model是什么?有什么用呢?](https://github.com/haizlin/fe-interview/issues/288)
* [說說你對vue的mixin的理解,有什么應用場景?](https://github.com/haizlin/fe-interview/issues/287)
* [SPA首屏加載速度慢的怎么解決?](https://github.com/haizlin/fe-interview/issues/286)
* [刪除數組用delete和Vue.delete有什么區別?](https://github.com/haizlin/fe-interview/issues/285)
* [動態給vue的data添加一個新的屬性時會發生什么?怎樣解決?](https://github.com/haizlin/fe-interview/issues/284)
* [組件和插件有什么區別?](https://github.com/haizlin/fe-interview/issues/283)
* [說說你使用vue過程中遇到的問題(坑)有哪些,你是怎么解決的?](https://github.com/haizlin/fe-interview/issues/274)
* [說說你對選項el,template,render的理解](https://github.com/haizlin/fe-interview/issues/273)
* [vue實例掛載的過程是什么?](https://github.com/haizlin/fe-interview/issues/272)
* [vue在組件中引入插件的方法有哪些?](https://github.com/haizlin/fe-interview/issues/271)
* [v-if和v-for的優先級是什么?如果這兩個同時出現時,那應該怎么優化才能得到更好的性能?](https://github.com/haizlin/fe-interview/issues/270)
* [分別說說vue能監聽到數組或對象變化的場景,還有哪些場景是監聽不到的?無法監聽時有什么解決方案?](https://github.com/haizlin/fe-interview/issues/269)
* [$nextTick有什么作用?](https://github.com/haizlin/fe-interview/issues/268)
* [為什么data屬性必須聲明為返回一個初始數據對應的函數呢?](https://github.com/haizlin/fe-interview/issues/267)
* [怎么在watch監聽開始之后立即被調用?](https://github.com/haizlin/fe-interview/issues/266)
* [watch怎么深度監聽對象變化?](https://github.com/haizlin/fe-interview/issues/265)
* [watch和計算屬性有什么區別?](https://github.com/haizlin/fe-interview/issues/264)
* [vue如何監聽鍵盤事件?](https://github.com/haizlin/fe-interview/issues/263)
* [v-for循環中key有什么作用?](https://github.com/haizlin/fe-interview/issues/262)
* [怎么在vue中使用插件?](https://github.com/haizlin/fe-interview/issues/261)
* [你有寫過自定義組件嗎?](https://github.com/haizlin/fe-interview/issues/260)
* [說說你對keep-alive的理解是什么?](https://github.com/haizlin/fe-interview/issues/259)
* [怎么使css樣式只在當前組件中生效?](https://github.com/haizlin/fe-interview/issues/258)
* [你有看過vue的源碼嗎?如果有那就說說看](https://github.com/haizlin/fe-interview/issues/235)
* [你有寫過自定義指令嗎?自定義指令的生命周期(鉤子函數)有哪些?](https://github.com/haizlin/fe-interview/issues/234)
* [v-show和v-if有什么區別?使用場景分別是什么?](https://github.com/haizlin/fe-interview/issues/232)
* [說說你對MVC、MVP、MVVM模式的理解](https://github.com/haizlin/fe-interview/issues/231)
* [說下你對指令的理解?](https://github.com/haizlin/fe-interview/issues/230)
* [請描述下vue的生命周期是什么?](https://github.com/haizlin/fe-interview/issues/229)
* [vue組件之間的通信都有哪些?](https://github.com/haizlin/fe-interview/issues/228)
* [什么是虛擬DOM?](https://github.com/haizlin/fe-interview/issues/227)
* [什么是雙向綁定?原理是什么?](https://github.com/haizlin/fe-interview/issues/226)
* [vue和react有什么不同?使用場景是什么?](https://github.com/haizlin/fe-interview/issues/225)
* [說說vue的優缺點](https://github.com/haizlin/fe-interview/issues/224)
* [有使用過vue嗎?說說你對vue的理解](https://github.com/haizlin/fe-interview/issues/223)
### [](https://github.com/haizlin/fe-interview/blob/master/lib/Vue.md#vue-cli)vue-cli
* [vue-cli提供了的哪幾種腳手架模板?](https://github.com/haizlin/fe-interview/issues/543)
* [vue-cli工程中常用的npm命令有哪些?](https://github.com/haizlin/fe-interview/issues/542)
* [在使用vue-cli開發vue項目時,自動刷新頁面的原理你了解嗎?](https://github.com/haizlin/fe-interview/issues/541)
* [vue-cli3插件有寫過嗎?怎么寫一個代碼生成插件?](https://github.com/haizlin/fe-interview/issues/540)
* [vue-cli生成的項目可以使用es6、es7的語法嗎?為什么?](https://github.com/haizlin/fe-interview/issues/488)
* [vue-cli怎么解決跨域的問題?](https://github.com/haizlin/fe-interview/issues/487)
* [vue-cli中你經常的加載器有哪些?](https://github.com/haizlin/fe-interview/issues/486)
* [你知道什么是腳手架嗎?](https://github.com/haizlin/fe-interview/issues/485)
* [說下你了解的vue-cli原理?你可以自己實現個類vue-cli嗎?](https://github.com/haizlin/fe-interview/issues/484)
* [怎么使用vue-cli3創建一個項目?](https://github.com/haizlin/fe-interview/issues/483)
* [vue-cli3你有使用過嗎?它和2.x版本有什么區別?](https://github.com/haizlin/fe-interview/issues/482)
* [vue-cli默認是單頁面的,那要弄成多頁面該怎么辦呢?](https://github.com/haizlin/fe-interview/issues/360)
* [不用vue-cli,你自己有搭建過vue的開發環境嗎?流程是什么?](https://github.com/haizlin/fe-interview/issues/351)
### [](https://github.com/haizlin/fe-interview/blob/master/lib/Vue.md#vue-router)vue-router
* [vue-router怎么重定向頁面?](https://github.com/haizlin/fe-interview/issues/419)
* [vue-router怎么配置404頁面?](https://github.com/haizlin/fe-interview/issues/418)
* [切換路由時,需要保存草稿的功能,怎么實現呢?](https://github.com/haizlin/fe-interview/issues/417)
* [vue-router路由有幾種模式?說說它們的區別?](https://github.com/haizlin/fe-interview/issues/416)
* [vue-router有哪幾種導航鉤子( 導航守衛 )?](https://github.com/haizlin/fe-interview/issues/415)
* [說說你對router-link的了解](https://github.com/haizlin/fe-interview/issues/414)
* [vue-router如何響應路由參數的變化?](https://github.com/haizlin/fe-interview/issues/383)
* [你有看過vue-router的源碼嗎?說說看](https://github.com/haizlin/fe-interview/issues/382)
* [切換到新路由時,頁面要滾動到頂部或保持原先的滾動位置怎么做呢?](https://github.com/haizlin/fe-interview/issues/381)
* [在什么場景下會用到嵌套路由?](https://github.com/haizlin/fe-interview/issues/380)
* [如何獲取路由傳過來的參數?](https://github.com/haizlin/fe-interview/issues/379)
* [說說active-class是哪個組件的屬性?](https://github.com/haizlin/fe-interview/issues/378)
* [在vue組件中怎么獲取到當前的路由信息?](https://github.com/haizlin/fe-interview/issues/377)
* [vur-router怎么重定向?](https://github.com/haizlin/fe-interview/issues/376)
* [怎樣動態加載路由?](https://github.com/haizlin/fe-interview/issues/375)
* [怎么實現路由懶加載呢?](https://github.com/haizlin/fe-interview/issues/374)
* [如果讓你從零開始寫一個vue路由,說說你的思路](https://github.com/haizlin/fe-interview/issues/373)
* [說說vue-router完整的導航解析流程是什么?](https://github.com/haizlin/fe-interview/issues/372)
* [路由之間是怎么跳轉的?有哪些方式?](https://github.com/haizlin/fe-interview/issues/371)
* [如果vue-router使用history模式,部署時要注意什么?](https://github.com/haizlin/fe-interview/issues/370)
* [route和router有什么區別?](https://github.com/haizlin/fe-interview/issues/369)
* [vue-router鉤子函數有哪些?都有哪些參數?](https://github.com/haizlin/fe-interview/issues/368)
* [vue-router是用來做什么的?它有哪些組件?](https://github.com/haizlin/fe-interview/issues/367)
### [](https://github.com/haizlin/fe-interview/blob/master/lib/Vue.md#vuex)vuex
* [你有寫過vuex中store的插件嗎?](https://github.com/haizlin/fe-interview/issues/539)
* [你有使用過vuex的module嗎?主要是在什么場景下使用?](https://github.com/haizlin/fe-interview/issues/538)
* [vuex中actions和mutations有什么區別?](https://github.com/haizlin/fe-interview/issues/537)
* [vuex使用actions時不支持多參數傳遞怎么辦?](https://github.com/haizlin/fe-interview/issues/413)
* [你覺得vuex有什么缺點?](https://github.com/haizlin/fe-interview/issues/412)
* [你覺得要是不用vuex的話會帶來哪些問題?](https://github.com/haizlin/fe-interview/issues/411)
* [vuex怎么知道state是通過mutation修改還是外部直接修改的?](https://github.com/haizlin/fe-interview/issues/393)
* [請求數據是寫在組件的methods中還是在vuex的action中?](https://github.com/haizlin/fe-interview/issues/392)
* [怎么監聽vuex數據的變化?](https://github.com/haizlin/fe-interview/issues/391)
* [vuex的action和mutation的特性是什么?有什么區別?](https://github.com/haizlin/fe-interview/issues/390)
* [頁面刷新后vuex的state數據丟失怎么解決?](https://github.com/haizlin/fe-interview/issues/389)
* [vuex的state、getter、mutation、action、module特性分別是什么?](https://github.com/haizlin/fe-interview/issues/388)
* [vuex的store有幾個屬性值?分別講講它們的作用是什么?](https://github.com/haizlin/fe-interview/issues/387)
* [你理解的vuex是什么呢?哪些場景會用到?不用會有問題嗎?有哪些特性?](https://github.com/haizlin/fe-interview/issues/386)
* [使用vuex的優勢是什么?](https://github.com/haizlin/fe-interview/issues/385)
* [有用過vuex嗎?它主要解決的是什么問題?推薦在哪些場景用?](https://github.com/haizlin/fe-interview/issues/384)
- 一線大廠前端筆試真題解析
- 前
- 1、阿里(29問)
- 2、網易(26問)
- 3、滴滴(28問)
- 4、今日頭條17問
- vue常問
- webpack常問
- 其他常問
- vue雙向綁定、響應式原理
- js事件循環
- 頁面性能優化,打包優化
- vue的diff算法
- url輸入流程
- 深拷貝
- new、原型、繼承方式、symbol、閉包內存泄漏處理、判斷對象原型歸屬
- 觀察者和訂閱發布區別
- 封裝過哪些hooks
- ele組件二次封裝啥的
- 算法常問
- 幾種排序
- 二分查找
- 反轉二叉樹、先中后序遍歷、深度/廣度遍歷
- 數組去重
- 統計一個字符串出現最多的字母
- 斐波那契數列
- 速度創建1-100的數組
- 反轉單向鏈表
- 無重復字符的最長子串
- 一份面試題
- css常問
- 畫三角形
- flex
- 實現sticky footer (粘性頁腳)