Vue foundation - component communication

Communication between vue components and parent-child components 1. How to use components 1.1 Global Component is mainly to improve code reusability and make code reusable. Components need to be registered before use. There are two methods to register components. One is global registration and the other is local registration. Vue.comp ...

Added by todd2006 on Wed, 08 Dec 2021 00:20:53 +0200

Do you know when to calculate attributes with Vue?

Absrtact: when we deal with complex logic, we should use computational attributes. This article is shared from Huawei cloud community< Do you have an in-depth understanding of calculated attributes and know when to calculate attributes with Vue? >, author: honest man. Calculation properties Sometimes, we put too much logic into the templa ...

Added by everisk on Wed, 01 Dec 2021 08:24:08 +0200

vue-cli4 configuration multi page application pit entry details

preface Recently, when developing cross-border e-commerce projects, we need to make an advertising page. According to the product requirements, we hope that the advertising page will be under an independent domain name, but the leaders hope that this page will be in the original project, so they think of using Vue cli multi page application. Ne ...

Added by shapiro125 on Tue, 30 Nov 2021 06:25:29 +0200

Why vue3 do I need the Composition API?

What is the Composition API? Vue 3 introduced the Composition API, which has since swept the entire community. In my opinion, the only best feature of the Composition API is the ability to extract reaction states and functions into their own reusable modules or "composable". What is composable? So, what is Vue.js Composable? Yo ...

Added by Jason Batten on Mon, 29 Nov 2021 22:18:50 +0200

Vue front end development specification

Sorting based on Vue official style guide   1, Coercion 1. The component name is multiple words The component name should always be multiple words, except for the root component App. Positive example: export default { name: 'TodoItem', // ... } Copy code Counterexample: export default ...

Added by Xeoncross on Mon, 29 Nov 2021 06:23:37 +0200

Difference between export default and export

Difference between export default and export: 1. Default export and default import Default export syntax: export default is the default exported memberDefault import syntax: import receive name from 'module identifier' export default //a.js const str = "blablabla~"; export default str; Corresponding import method: //b.js import str from 'a ...

Added by Blu_Smurf on Mon, 29 Nov 2021 00:53:24 +0200

HTML and CSS interview question 35

position is superimposed with display, margin collapse, overflow and float 1, The relationship among 'display', 'position' and 'float' Figure below: Set valueAfter conversioninline-tabletableinline, inline-block,run-in,table-row-group,table-column,table-column-group,table-header-group,table-footer-group,table-row,table-cell,table-captionbl ...

Added by php_user13 on Sun, 28 Nov 2021 20:26:48 +0200

Vue basic syntax: calculated, watch, and filters

1. Vue instance options When instantiating Vue objects, you need to provide a series of configuration information for the constructor of Vue. The code is as follows: new Vue({ //option }) When creating a Vue instance using the new operator, you can pass in an option object for the instance. There are many types of data in the option object ...

Added by Mordred on Sun, 28 Nov 2021 19:35:05 +0200

Summary of JS interview questions

Previous points here: ↓ Summary of JS interview questions (I) Summary of JS interview questions (II) Summary of JS interview questions (III) 31. JS single thread or multi thread, how to display asynchronous operation Reference answer: JS itself is single threaded. It relies on the browser to complete asynchronous operations. Resolu ...

Added by cocpg on Sat, 27 Nov 2021 06:07:14 +0200

vue 3 learning notes -- a new usage of computed in vue 3

The use of computed in vue3. Since vue3 is compatible with the optional API of vue2, you can directly use the writing method of vue2. This article mainly introduces the new usage of computed in vue3 and compares the writing method in vue2, so that you can quickly master the new usage of computed in vue3. When using computed in the composite API ...

Added by Tux-e-do on Thu, 25 Nov 2021 04:29:06 +0200