Registration of components
Registration of components
By instantiating the Vue constructor function, you get a Vue instance, which we call the'root instance', which is the largest parent
This root instance exists as a label, so we also call it a'root component'
The root instance is also a component, but what we get is jus ...
Posted by nomad9 on Tue, 30 Jul 2019 20:20:10 +0200
Multiple ways to layout two columns
1. The most common and simplest layout is a fixed width on the left and adaptive on the right.
This is achieved by using float+margin-right:
eg:
<body>
<div id="wrapper">
<div class="left">left fixed width, height not fixed </div>
<div class=& ...
Posted by SmokyBarnable on Tue, 30 Jul 2019 18:37:25 +0200
logback configuration and use
brief introduction
logback is another open source log component designed by the founder of log4j. Currently, it is divided into three modules:
logback-core is the basic module of the other two modules.
Logback-classic is an improved version of log4j. In addition, logback-classic fully implements the SLF4J API, so that you can easily replace it ...
Posted by peter_anderson on Tue, 30 Jul 2019 16:08:36 +0200
C# Iterator and Field Keyword
Iterator pattern is one of design patterns, because of its universality, many languages have built-in native support.
In. NET, the iterator pattern is passed through IEnumerator,IEnumerable Two interfaces (non-generic and generic versions) are encapsulated
An important aspect of the iterator pattern is that instead of returning all data at on ...
Posted by lucianoes on Tue, 30 Jul 2019 06:42:33 +0200
Android layout optimization three swordsmen: include+merge+ViewStub
Preface
When writing Android layouts, you always encounter pain points of one kind or another, such as:
Some layouts are used in many pages, and the style is the same. Every time they are used, they have to copy and paste a large section. Is there any way to reuse them?
After solving the problem in 1, it is found that there is alw ...
Posted by PHPSpirit on Mon, 29 Jul 2019 16:15:09 +0200
Vue.use Source Code Analysis
I think I've had experience in Vue development, and I'm no stranger to vue. use. When global components such as vue-resource or vue-router are used, they must be introduced through the Vue.use method. So what exactly did vue. use do before components were introduced? Let's have a glimpse.
First up vue.use source code
Vue.use = function (plu ...
Posted by libertyct on Mon, 29 Jul 2019 13:55:16 +0200
Learning the Front-end Course of web
Form fields, new types, attributes, and structure tags for HTML5
I. Now I have learned three domains:
1. textarea Personal Introduction/Introduction to textarea
2. File Domain Upload Files
3. form Domain form collects control information and submits it
Supplement: get submission is fast but unsafe, po ...
Posted by missy3434 on Mon, 29 Jul 2019 11:26:34 +0200
Object-oriented polymorphism
I. Concept
What is polymorphism?
Multiple objects of different classes can respond to the same method and produce different results
First of all, it is emphasized that polymorphism is not a special grammar, but a state, a feature (that multiple different objects can respond to the same method and produce different results).
Benefits: For us ...
Posted by nonexistentera on Mon, 29 Jul 2019 10:39:15 +0200
Java Framework _Mybatis_day03
5. Deep Understanding of Mybatis Parameters
5.1 parameterType (input type)
5.1.1 Passing Simple Types
int -- int or java.lang.Integer
string -- string or java.lang.String
Aliases are case-insensitive
5.1.2 Passing pojo objects
com.cpz.domain.User -- username,address,sex,birthday,id
...
Posted by ronz on Sun, 28 Jul 2019 15:08:33 +0200
Analysis of CSS3 Deformation, Transition, Animation and Related Attributes
1. Deformation
transform: element objects can be rotate d, scale d, moved translate, skew, matrix deformations.Example:
transform: rotate(90deg) scale(1.5,0.8) translate(100px,50px) skew(45deg,45deg);
/*Matrix Deformation*/
matrix(<number>,<number>,<number>,<number>,<number>,<number>);
/*perspective*/
persp ...
Posted by SpasePeepole on Sat, 27 Jul 2019 23:16:09 +0200