Bootstrap validate easy to use
I wrote a login verification with bootstrap date a few days ago. Here's a small note
First, we need to introduce
Bootstrappvalidator. CSS / / can not be imported
jquery-2.1.0.min.js
bootstrap.min.js
bootstrapValidator.js
The following is the verification method. The name attributes of the two text boxes verified are loginName and password (reme ...
Added by january_9th on Fri, 13 Dec 2019 23:30:45 +0200
React source code analysis - first rendering (custom component) II
Preface
In the previous article, we explained that after the reactcomponentcomponent [ins] is initialized, the render method of App[ins] is called to generate the ReactElement tree, and then the corresponding ReactDOMComponent[6] is returned. Let's see how the ReactDOMComponent[6] is converted into a DOM tree.
performInitialMount: function (ren ...
Added by westonlea7 on Wed, 11 Dec 2019 19:59:29 +0200
Styles to be noticed in embedding html in mail
In the work, there is often a need to send mail to users, and front-end engineers are needed to make html format mail. However, due to the limited support of mail clients for styles, many principles need to be paid attention to to to in order to be compatible with many kinds of browsers:
1. Use table+css layout for mail
2. The main part of the ...
Added by rob_maguire on Wed, 11 Dec 2019 11:35:29 +0200
Linux file and directory operation command 01
2.1 pwd(5*****)
(print work directory) print the working directory (display the current path) followed by - L, which is also - L (logical) by default. If the logical path (equivalent to win's) - P (physical) is displayed, the real physical path will be displayed
[root@oldbody local]# pwd
/usr/local
[root@oldbody local]# cd - return to the last ...
Added by Lind/swe on Wed, 11 Dec 2019 09:05:45 +0200
The right way to declare custom exceptions in modern Python?
What is the correct way to declare a custom exception class in modern Python? My main goal is to follow any standards that other exception classes have, so that any tool I catch in an exception, for example, prints out any extra strings I include in the exception.
"Modern Python" refers to a "right" way to run in Python ...
Added by john0117 on Wed, 11 Dec 2019 07:27:52 +0200
The old but timeless object-oriented -- Inheritance
Almost all languages have the concept of object-oriented. The object-oriented nature of JavaScript is based on prototype object system. When it comes to object-oriented, we have to mention inheritance.
Understanding new
It's easier for someone who has no experience in other languages to understand the inheritance of JavaScript.Unlike class inhe ...
Added by cricher on Tue, 10 Dec 2019 19:56:12 +0200
Comprehensive exploration of new features of Vue3.0 - rapid construction of practical projects based on Composition Api
Quick Start
Project source code: https://github.com/Wscats/vue-cli
This project comprehensively uses the new features of Vue3.0, which is suitable for novice learning
Based on the Composition API, i.e. function based API, the transformation is carried out. With Vue Cli, the priority is to experience the characteristics of Vue3
Using singleton ...
Added by EvanAgee on Tue, 10 Dec 2019 11:22:34 +0200
Upload a simple example of pictures using the image interface of wechat JS-SDK
1. Fully implement ios and Android wechat environment, select wechat album pictures, upload and save them locally2. Note that js version is compatible, use this version
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js" type="text/javascript"></script>
Official explanation3. This example process will call the wx.chooseImag ...
Added by Alexhoward on Tue, 10 Dec 2019 04:35:46 +0200
javascript object deep copy
The object copies of native js are all shallow copies. If you need deep copies, you need to do some manual operations
Using json to serialize and deserialize
Example:
let obj = {
name: 'lizitao',
msg: {
age: '2'
}
};
let cp = JSON.parse(JSON.stringify(obj));
console.log(cp);
Advantage: very simple to writeDisadvantage: too m ...
Added by wyvern on Mon, 09 Dec 2019 21:29:09 +0200
d3.js dynamic chart
d3js v5.9.2 Using D3 to create dynamic chart mainly uses the API of d3.tracing, through which you can complete the animation My learning record is to learn about these API s through an example
Moving histogram
Take the previous example. Here is the code: Complete column chart
The modified code part is at the place of creating rect:
//Origi ...
Added by dmIllithid on Mon, 09 Dec 2019 13:05:35 +0200