preface
Those who know the front end must know the Vue framework, because the Vue framework is the most widely used framework in the market. Basically, frames in a lot of things are Vue. So today to share with you the Vue framework of the interview questions, so that when the interview can also be prepared.
Vue framework interview questions
Vue framework interview questions mainly include: Vue basic knowledge, Vue core knowledge, VUE-CLI engineering, Vuex, HTTP request, UI style, common functions, in-depth development…
Vue basics
- Vue features
- Vue project structure introduction
- Vue common commands
- Vue is a common modifier
- Conditions apply colours to a drawing
- The list of rendering
- component
Vue core knowledge points
- Understanding that Vue is a set of progressive frameworks
- What are the two cores of vue.js?
- What is the difference between V-IF and V-show
- Priority of V-for and V-IF
- Can V-ON listen for multiple methods?
- The function of the key value in vUE
- Vue – CLI Project Upgrade vUE version
- How are event objects used in VUE events?
- The use of $nextTick
- Why does data have to be a function in a Vue component
- The vUE neutron component calls the parent component’s method
- The role of the keep-alive component in vUE
- How to write reusable components in VUE?
- What is the VUE lifecycle?
- What are the VUE lifecycle hook functions?
- How does VUE listen for keys in keyboard events?
- Method that triggers view updates when vUE updates an array
- Considerations for object change detection in VUE
- Solve the initialization page flash problem of non-engineering projects
- The list generated by V-for implements active switchover
- Use in components of v-Model syntax sugar
- Custom filters in vUE
- Vue and other single-page applications and their advantages and disadvantages
- What are the calculated properties of vUE?
- Vue-cli provides several scaffolding templates
- How does a VUE parent component pass data to its children?
- How to disable the scroll bar after vue popup?
- Calculate the difference between caching and method calls for attributes
- Vue-use of custom commands in the CLI
Vue – cli project
- What technologies are involved in the VUE-CLI project, and what are their roles?
- What are the common NPM commands used in vuE-CLI projects?
- Name the use of folders and files in vue-CLI project
- The index.js file in config folder is used to configure the engineering development environment and production environment
- Please tell us more about the configuration in package.json
vue-router
- How does vue-Router respond to route parameter changes?
- Complete vue-Router navigation parsing process
- What kind of navigation hooks does vue-Router have?
- Vue-router Transmits parameters in several ways
- How to define a vue-router dynamic route? How do I get the passed value
- Vue-router dynamic route matching
- How does vue-router define nested router routes?
<router-link></router-link>
Components and their properties- Vue-router Implements lazy route loading (dynamic route loading)
- Vue-router Indicates the two modes of routing
- History Route mode and background configuration
vuex
- What is Vuex?
- What problem does Vuex solve?
- Use the core concepts of VUex
- Vuex application in VUE-CLI
- Using vuex in vUE, change the value of state
- Vuex Actions Asynchronously changes the status
- Where is state stored in Vuex and how can it be changed?
- How do I batch use Vuex state in components?
- How do I batch use Vuex’s getter property in a component?
- What is the difference between Action and mutation in Vuex?
- Actions in Vuex are usually asynchronous, so how do you know when an action ends?
- Has the Vuex plugin ever been useful? How to use a brief introduction?
The HTTP request
- What are Promise objects?
- What is the difference between Axios, FETCH and Ajax?
- What are the same origin policy and cross-domain issues of JS?
- How to solve cross-domain problems?
- What is axios about?
The UI style
- The scoped property of a VUE component
- How do I make CSS work only in the current component?
- Vue-ui component library commonly used in the CLI
- How to adapt to mobile?
- Media query on the mobile terminal
- Vue content is centered vertically and horizontally
- Vue-cli method of introducing pictures
- Common style problems on mobile
- Text beyond hiding
Commonly used functions
- How to implement TAB switching in VUE?
- Keep-alive implements TAB component caching in Vue
- Slide pages from right to left in VUE
- How do parent and child components call methods to each other in VUE?
- Use of the VUE central event bus
MVVM design pattern
- MVC, MVP, and MVVM patterns
- The difference between MVC, MVP and MVVM
- The realization principle of MVVM
- Object. DefineProperty () method
- Classes and objects defined in ES6
- Document fragments in JS
- Deconstruction assignment
- Array.from
- Array.reduce
- Use of recursion
- Obj. Keys () and Obj. DefineProperty
- Publish and subscribe
- Vue project optimization, shorten the loading time of the first screen
Limited space, need the article "Vue framework interview summary" complete version (including analysis) PDF document friends can join this Q skirt: [624369675]Copy the code
Further develop
- This section describes how to run the vue development command NPM run dev
- Server-side rendering of VUE
- The characteristics of the webpack