Vue interview questions
Thanks to Excalibur – Github for organizing the documentation. This article is for your own learning and use. All links point to the address of the original warehouse, and the markdown file in this article can be obtained from my warehouse
(Vue 248 Interview questions)
vue
-
Do you know which Web template engine vue uses for its template syntax? Tell me what you understand about the template engine
-
Do you know how the V-Model works? Say that see
-
Have you used VUE to develop multilingual projects? What do you do?
-
When using computed properties, can function names be the same as data in data sources?
-
Can data attributes in Vue have the same name as methods? Why is that?
-
How do I define global methods for VUE?
-
Vue2.0 no longer supports filters in v-html.
-
How to solve the problem of invalid static resource images after VUE packaging?
-
How to solve the problem that vue dynamic setting img SRC does not take effect?
-
How to do SEO optimization for search engines after using VUE?
-
What are the life cycles associated with keep-alive? Describe these life cycles
-
If you had to choose between Vue/React/AngularJS right now, which one would you choose? Tell me your reasons
-
Do you know which version of IE is compatible with Vue2.0?
-
Use VUE to develop a small todo app, talk about your ideas
-
Have you read vue’s recommended style guide? Name the ones you know
-
Which version of VUE did you start with? Do you know the difference between 1.x and 2.x?
-
Do you know how key works in VUE? Tell me what you think of it
-
How to reset data in VUE?
-
How does Vue keep HTML comments in a template when rendering it?
-
Observable do you know anything about vue.Observable? Say that see
-
Do you know how the style plus scoped attribute works?
-
What features or improvements would you like to see in VUe3.0?
-
What are the VUE boundary cases?
-
How do I access an instance of a parent component in a child component?
-
What happens if the watch property is defined with the arrow function?
-
What if methods’ methods were defined with arrow functions in a VUE project?
-
How do I configure favIcon in a VUE project?
-
Have you ever used the Babel-Polyfill module? What is it mainly used for?
-
What do you know about vUE error handling?
-
Passing $event in a vue event, what is the difference between using E.target and E.currenttarget?
-
Is style required in a.vue file? Is script required? Why is that?
-
How does VUE force refresh components?
-
How does a parent component receive multiple parameters from a child component in a vUE custom event?
-
What are some of the vUE best practices you’ve summarized in your actual work?
-
Vue is invalid to bind custom events to components.
-
What happens when a vue property name is the same as a method name?
-
What happens if a vue variable name starts with an attribute like _ or $? How do I access their values?
-
In what order does Vue traverse objects using V-for? How to ensure the order?
-
What does vUE do if it wants to extend an existing component?
-
Under the said
$attrs
and$listeners
Usage scenarios of -
What is the reason why vUE project 404 is reported after local development is completed and deployed to the server?
-
What are the application scenarios of V-once?
-
Explain your understanding of vue’s form modifier.lazy
-
Why does Vue require a component template to have only one root element?
-
When an EventBus is registered globally, the event is repeatedly triggered during route switching.
-
How to modify the generated file path after vue packaging?
-
Have you used VUE to interact with native apps? Talk about the way vUE interacts with ap
-
Write a TAB switch using vue
-
What are recursive components in VUE? Can I give you an example?
-
How do I access instances or child elements of a child component?
-
How do I access an instance of a parent component in a child component?
-
How is the root instance accessed from within the component?
-
Explain your understanding of Object.defineProperty
-
Native Addeventlisteners written in the Vue component listen for events. Are they manually destroyed? Why is that?
-
How to destroy timer in VUE component?
-
When will vUE components be destroyed?
-
How to optimize when rendering large amounts of data using VUE? Tell me what you think!
-
What should I be aware of when using this in Vue?
-
Have you ever used JSX? Tell me what you understand about JSX
-
Talk about naming conventions for components
-
How to configure vue2.0+ to support typescript writing?
-
<template></template>
What’s the use? -
Have you used the IS feature of Vue? Mainly used in what aspects?
-
How many ways can vue represent :class and :style?
-
Do you know what a functional component is?
-
How does Vue change the delimiter of the inserted template?
-
What does the write name option do in the component?
-
Explain your understanding of provide and inject
-
Did you use DevTools during development?
-
What do you understand about slot? What are the slot usage scenarios?
-
Have you ever used dynamic components? Tell me what you think of it
-
What are the types of prop validation?
-
How does PROP do validation? Can I set the default value?
-
How to cache the current open routing component, cache to update the current component how to do?
-
Explain your understanding of the design principles of VUE components
-
Do you know anything about Vue’s diff algorithm?
-
How does Vue optimize the loading speed of the home page?
-
What are the final files vue packages into?
-
What is the difference between Ajax, Fetch, and Axios?
-
What are the ways that VUE can listen for array changes? Why do these methods listen?
-
How are Event objects used in VUE?
-
What is the problem caused by the blank screen on vUE home page? How to solve it?
-
Talk about your understanding of one-way data flow and two-way data flow
-
Which UI library do you use for mobile UI? Have you had any problems?
-
Do you know how NextTick works?
-
Tell me what you understand about the V-clock and V-pre commands
-
Write out form modifiers and event modifiers that you know
-
Tell me your understanding of proxy
-
Have you ever written your own UI component library in VUE?
-
How to achieve a skin change function with VUE?
-
Have you used Echarts in VUE? What holes have you stepped in? How is it solved?
-
If you were asked to teach a colleague with 2-3 years of front-end experience to use VUE, how would you do it?
-
What are the ways to optimize VUE performance?
-
What problem does SSR solve? Have you ever done SSR? How did you do it?
-
What do you think are the vUE development specifications?
-
What preparations must be made before vUE deployment goes online?
-
What are the ways in which vUE transition animation is implemented?
-
What is the difference between created and Mounted life cycles when a VUE requests data?
-
What are the methods of bidirectional binding between vUE parent and child components?
-
How does vue get dom nodes?
-
Was there any unit testing done on the VUE project?
-
Does the VUE project use NPM Run Build –report?
-
How to solve the problem that vue packaging vendor is too large?
-
What if WebPack packs vue too slowly?
-
What do you do when vUE has to interconnect with n different back-end people (requesting different urls) at the same time during development?
-
Vue to do permission management how to do? What if you control button level permissions?
-
Talking about the directory structure of your VUE project, how do you divide the structure and components if it’s a large project?
-
What are your best practices for using VUE on mobile?
-
Why did your project choose VUE over other frameworks?
-
What do you know about upcoming VUe3.0 features?
-
Did you use any AIDS during vUE development?
-
What is the difference between vue and wechat small program writing?
-
How do I cache the current component? How to update the cache?
-
Do you know what advanced components are? Can you give an example to illustrate?
-
Why can we write components in.vue? Can it be another filename suffix?
-
What is vue-loader? What does it do?
-
Tell me what you understand about vue’s extend constructor. What does it mainly do?
-
How about synchronizing axios asynchronous requests?
-
How do I catch component VUE error messages?
-
Why does VUE use asynchronous update components?
-
How to implement a virtual DOM? Tell me what you think
-
Write out multiple ways to define component templates
-
What are the implementation methods of SPA single page?
-
Tell me your understanding of SPA single page. What are its advantages and disadvantages?
-
What kind of projects have you done with VUE?
-
How do I introduce third-party libraries (such as jquery) into my Vue project? What are some ways to do that?
-
Write a filter using vUE
-
Have you ever used the render function? What are the benefits?
-
What are your common instructions to write down?
-
Hand-write a custom command and how to call it
-
Which lifecycle do you place a component in when it comes in requesting an interface? Why is that?
-
Have you ever used eventBus? Say what you understand
-
What are the pros and cons of VUE?
-
In what cycle is DOM rendering completed?
-
Which hooks are triggered when the page is first loaded?
-
How many phases are there in the VUE life cycle?
-
What is the role of the VUE lifecycle?
-
What’s the difference between Vue and Angular?
-
How do I introduce SCSS? How to use it after introduction?
-
How do you manage interfaces using vUE development process?
-
Why is it officially recommended to use Axios instead of Vue-Resource?
-
Do you know how Axios works? Have you seen the source code?
-
Have you ever packaged Axios? What is the main aspect of encapsulation?
-
How do I interrupt an AXIos request?
-
What is Axios? How to use it? How to solve cross-domain problems?
-
What is your understanding of vue template compilation?
-
Can V-ON bind multiple methods?
-
What are the common modifiers in Vue? List and illustrate
-
What do you think is the core of VUE?
-
What is a V-Model? What’s the use?
-
Tell me your understanding of vue mixins, what are the application scenarios?
-
How to solve the slow loading speed of SPA first screen?
-
What is the difference between delete and vue.delete when deleting an array?
-
What happens when a new property is dynamically added to vue’s data? How to solve it?
-
What’s the difference between a component and a plug-in?
-
Tell me some of the problems you encountered in using VUE and how you solved them.
-
Say what you think of the el,template,render options
-
What is the process of mounting a VUE instance?
-
What are the ways that Vue introduces plug-ins into components?
-
What is the priority of V-if and V-for? If these two are present at the same time, how can you optimize them for better performance?
-
Describe the scenarios in which vUE can listen for changes in arrays or objects. What other scenarios can’t? What’s the solution when you can’t listen?
-
What does $nexttick do?
-
Why must the data attribute be declared as a function that returns the original data?
-
How to call watch immediately after the start of listening?
-
How does watch monitor object changes deeply?
-
What is the difference between a watch and a calculated property?
-
How does VUE listen for keyboard events?
-
What does a key do in a V-for loop?
-
How to use plug-ins in VUE?
-
Have you ever written a custom component?
-
What do you understand about Keep-alive?
-
How do I make CSS styles apply only to the current component?
-
Have you read the source code for vue? If so, tell me
-
Have you ever written a custom command? What are the life cycles (hook functions) of custom instructions?
-
What’s the difference between V-show and V-if? What are the usage scenarios?
-
Talk about your understanding of MVC, MVP, MVVM patterns
-
What do you understand about the instructions?
-
Please describe the vUE life cycle.
-
What is the communication between VUE components?
-
What is the virtual DOM?
-
What is bidirectional binding? How does it work?
-
What’s the difference between Vue and React? What are the usage scenarios?
-
Talk about the pros and cons of VUE
-
Have you ever used VUE? Tell me what you understand about VUE
vue-cli
-
What kinds of scaffolding templates are provided by VUE-CLI?
-
What are the common NPM commands used in vuE-CLI projects?
-
Do you understand the principle of automatic page refresh when using VUE-CLI to develop vUE projects?
-
Have you written about vuE-CLI3 plugin? How to write a code generation plug-in?
-
Can VUE-CLI-generated projects use ES6, ES7 syntax? Why is that?
-
How does vuE-CLI solve the cross-domain problem?
-
What loaders do you often use in VUe-CLI?
-
Do you know what scaffolding is?
-
What do you know about vue-CLI? Can you implement a vue-CLI class yourself?
-
How to create a project with VUE-CLI3?
-
Vue-cli3 have you used it before? How is it different from the 2.x version?
-
Vue-cli default is single page, so how to make multiple pages?
-
Have you ever built a VUE development environment without vue-CLI? What is the process?
vue-router
- How does vue-router redirect pages?
- How to configure a 404 page on vue-router?
- When switching routes, you need to save the draft function, how to achieve?
- How many modes does vue-router have? What’s the difference?
- What kind of navigation hooks does vue-Router have?
- Tell me what you know about router-link
- How does vue-Router respond to route parameter changes?
- Have you read the vue-Router source code? Say that see
- When switching to a new route, how do I scroll to the top of the page or keep the original scroll position?
- In what situations will nested routines be used?
- How do I obtain parameters from the route?
- Which component property is active-class?
- How do I get the current routing information in the VUE component?
- How to redirect vur-router?
- How to load routes dynamically?
- How to implement lazy route loading?
- If you were asked to write a VUE route from scratch, tell me what you think
- What is the complete navigation parsing process for vue-Router?
- How do routes jump from one another? What are the ways?
- If vue-router is in history mode, what should you be aware of when deploying it?
- What is the difference between route and router?
- What are vue-router hook functions? What are the parameters?
- What is vue-Router used for? What components does it have?
vuex
- Have you ever written a store plugin for Vuex?
- Have you ever used Vuex’s Module? In what scenarios is it mainly used?
- What is the difference between Actions and mutations in VUex?
- What if VUex does not support multi-parameter passing when using Actions?
- What do you see as the disadvantages of Vuex?
- What do you think will happen if you don’t use Vuex?
- How does VUEX know whether the state was modified by mutation or directly externally?
- Is the request data written in the component’s methods or in the VUex action?
- How to monitor vuEX data changes?
- What are the characteristics of Vuex Action and mutation? What’s the difference?
- How can VUex state data be lost after the page is refreshed?
- What are the state, getter, mutation, Action, and Module features of VUex?
- How many attribute values does vuex store have? What do they do?
- What do you mean by vuex? Which scenarios will be used? Would it be a problem if I didn’t use it? What are the features?
- What are the advantages of using Vuex?
- Have you ever used vuex? What problem does it mainly solve? Which scenarios are recommended?
ElementUI
- How does Elementui do form validation? What about validation for each input in the loop?
- Have you ever re-encapsulated an ElementUI component?
- How does ElementUi modify the default style of a component?
- How does elementUI’s shuttle component get stuck if the data volume is large?
- How does the ElementUI table component implement dynamic table headers?
- Have elementUi had problems using the table component?
- Have you read the source code for Elementui?
- Has elementUI been used in your project? What problems have you encountered? What are its main usage scenarios?
- What VUE UI have you used? What are their advantages and disadvantages?
mint-ui
- Have you encountered any problems with mint-UI? How did it work out?
- Name a few common mint-UI components
- What is mint-UI? Have you ever used it?