Components and routing in Vue
1. What is the component
Component system is an important concept of Vue, because it is an abstraction, which allows us to build large-scale applications with small, independent and usually reusable components. Usually an application is organized in the form of a nested component tree.
1.1 declaration and use of components
Global components
...
Posted by mike2098 on Thu, 07 Nov 2019 00:07:28 +0100
CORBA Component Development
1 purpose of the experiment
(1) master the concept of component development, understand CORBA model and ORB mechanism;
(2) master the programming method of CORBA Components.
2 experiment content
Steps:
(1) configuration environment JDK environment.
(2) compile IDL interface.
(3) compile the server program.
(4) compile ...
Posted by Daleeburg on Wed, 06 Nov 2019 20:28:55 +0100
Reasons for slow loading of vue for the first time / slow loading after refresh and Solutions
Recently, a problem was found in the project. The loading speed of the page is very slow after each refresh, about 20s. In the development environment, it is very smooth, almost imperceptible. This article refers to the optimization of various schemes of Wangshan.
1. Close the map file generated during packaging
In the config/index.js file, it ...
Posted by ragtek on Wed, 06 Nov 2019 03:31:21 +0100
Enable cross domain request (CORS) in ASP.NET Core
This article describes how to enable CORS in ASP.NET Core applications.
Browser security prevents web pages from sending requests to other domains rather than serving them. This restriction is known as the same origin policy. The same source policy prevents malicious sites from reading sensitive data from another site. Sometimes, you may want ...
Posted by jmgrhm on Sun, 03 Nov 2019 18:48:21 +0100
Vue learning series - understanding life cycle and hook
Preface
In Last article In, we have classified and explained the common instructions encountered in the development of vue. We have probably learned how to realize data binding and realize dynamic data display function. With instructions, we can develop faster and better. In this article, we will explore the life cycle of vue through examples.
...
Posted by dev99 on Sun, 03 Nov 2019 12:40:42 +0100
js array de duplication summary
1,es6 set
ES6 provides a new Set of data structures. It is similar to an array, but the values of the members are unique and there are no duplicate values.
let arr = [1,2,3,4,3,2,3,4,6,7,6];
let unique = (arr)=> [...new Set(arr)];
unique(arr);//[1, 2, 3, 4, 6, 7]
2,es6 map
The idea is that if there is no attribute of array element in the map ...
Posted by s-mack on Sat, 02 Nov 2019 22:44:31 +0100
javascript's personal understanding of assignment, shallow copy and deep copy
As for assignment, shallow copy and deep copy, I have been thinking for a long time before, and I always think that I have remembered them, but I am too difficult. Today, I write down my notes. I hope I can master this thing completely and help anyone who wants to learn it.
I. stack, heap, pointer address
Stack memory: personal understanding ...
Posted by jason_kraft on Sat, 02 Nov 2019 08:33:30 +0100
Mybatis dynamic SQL [if tag, where tag, SQL tag and include tag, foreache tag]
Requirement: query users by gender and name
SQL statement:
Select id, username, birthday, sex, address from 'user ` where sex = 1 and username like'% 3% '
Problems:
There may be only one A.sex and username attribute, and the other is null or empty [use if tag]
B. when the sex/username property is null or empty, the ...
Posted by theonewhotopes on Thu, 31 Oct 2019 15:35:31 +0100
Analysis of Vue router source code
start
First of all, it was broken up. After changing jobs, I finally had some leisure time. Suddenly, I realized that I hadn't written a blog for more than a year. After thinking about this time, I didn't seem to have much new technology accumulation. I felt so ashamed that I could not confuse myself.OK, let's get into the topic right away. Tod ...
Posted by drisate on Wed, 30 Oct 2019 20:00:58 +0100
Detailed interpretation of Spring's transaction propagation attribute
To learn things, we need to integrate knowledge with practice. If we only know the theory but never practice it, we will not have a solid grasp of it. It is estimated that we will forget it in a few days. Next, we will practice together to learn the propagation properties of Spring transactions.
Propagation attribute
The propagation attribute ...
Posted by keane7 on Wed, 30 Oct 2019 10:53:53 +0100