On the communication between parent and child components of vue

How to communicate between parent and child components? The parent component imports the child component through import and registers it in the parent component through the component attribute. Then the child component can be embedded into the parent component in the form of label. Communication through props The child component can receive ...

Posted by mY.sweeT.shadoW on Sat, 05 Mar 2022 06:03:36 +0100

Vue projects are rendered using SSR servers

Note: This is an article used by the author to record his own learning of SSR and sort out the process of server rendering of a project. This article is only the understanding of the reader according to the demo. If you want to learn how to deploy SSR through this article, the author suggests you consult other more authoritative materials for l ...

Posted by MelbourneFL on Sat, 05 Mar 2022 03:29:15 +0100

In vue, use axios to get the back end, get the binary stream, download the file interface, and fail to get the attribute in headers: content disposition

Get binary stream file api writing The back end here is a project written using the Spring Boot framework I use the encapsulation here and then call the way: First, write a tool class: The name is downloadrequest js The code notes are as follows: import axios from "axios"; /** * api encapsulation for file download */ // Create an axios ob ...

Posted by Zup on Sat, 05 Mar 2022 01:11:28 +0100

Vue3 calculation properties

Calculation attribute keyword: calculated. Computational properties are useful when dealing with some complex logic. Here is an example of an inverted string: <title>Vue Test example - Rookie tutorial(runoob.com)</title> <script src="https://unpkg.com/vue@next"></script> </head> <body> <div id="app"> ...

Posted by Kiubbo on Fri, 04 Mar 2022 13:22:51 +0100

Electronic + Vue custom Click to maximize, minimize and close window events

First, let's briefly understand the process types of Electron - rendering process and main process Main process: Electron runs package JSON's main script process. Rendering process: a process that runs on a web page. An Electron application has and has only one main process. The script running in the main process presents the user interface by ...

Posted by ianhull on Fri, 04 Mar 2022 08:50:26 +0100

Vue3's experience

First update 2021-4-19 1, Main Changes in JS In Vue2, the common main JS format is as follows: import Vue from 'vue' import xxx from 'XXX' Vue.use(xxx) new Vue({ el: '#app', router, store, components: { App }, template: '<App/>' }) But in Vue3, main The basic logic of JS has changed, which is somewhat similar to the cha ...

Posted by DJP1986 on Fri, 04 Mar 2022 06:04:03 +0100

How to split an array into even blocks using JavaScript

Author: Abhilash Kakumanu Translator: Front-end wit Source: stackabuse Have a dream, have dry goods, WeChat Search [Move the World] pays attention to this bowl-brushing wit that was still cleaning in the morning. This article GitHub https://github.com/qq449245884/xiaozhi Included, there are complete test points, materials and my series ...

Posted by hasjem on Thu, 03 Mar 2022 18:32:42 +0100

Build Vue server rendering from zero

What is server-side rendering Server Side Render (abbreviated as ssr) is a page rendering method that directly returns the rendered content from the server to the client. Benefits of server-side rendering Fast first screen renderingConducive to SEO The process of server-side rendering When the client initiates a request, the server returns ...

Posted by Rabioza123 on Thu, 03 Mar 2022 18:18:33 +0100

How does Vue listen for array changes

How does Vue listen for array changes We know through object DefineProperty () hijacking an array to set getter and setter, the push, splice, and pop methods of the array to be invoked will not trigger the setter of the array when changing the array elements. This will result in the change of the array after using the above method, and the cha ...

Posted by ym_chaitu on Thu, 03 Mar 2022 13:21:43 +0100

Understand object Defineproperty and Proxy, vue3 Why does 0 use Proxy?

preface During the interview a few days ago, the interviewer asked this question and felt that he didn't answer it very well. I'll sort it out here~ The length of the article will be relatively long, but after reading it, you will gain a lot ~ I hope you keep reading it~ Object.defineProperty() Function: define a new property on an object, o ...

Posted by norbie on Thu, 03 Mar 2022 05:27:36 +0100