The state pattern is a kind of pattern which changes the behavior of things according to the change of the internal state of things./** * PRE: status mode*///----------Example 1----------------/** * Analog light switch*/varLight =function() {
Object.keys function (JavaScript)Returns the name of an enumerable property and method for an object.In actual development, we sometimes need to know all the properties of the object, native JS gives us a good way: Object.keys (), the method returns
Today it's about object-oriented, well, not that object, it's the object.Let's start with today's content:What is Object-oriented:is to put together the methods of data and data, as an interdependent whole----object. Abstract the common objects of
Now the front-end development is more and more popular, the framework is more and more, like ExtJS, JQuery, Bootstrap and so on. Although the entry for so many years, but feel oneself in front-end aspect still exist The foundation is not strong,
In the case of indeterminate variable types, determine if the JavaScript variable is empty and do not use:if (TMP) {}The problem with this judgment is that, for example, when the value of TMP is number 0 o'clock, false is also returned.So try to use:
JavaScript plugins can be introduced individually (using a single file provided by Bootstrap *.js ), or all at once (using bootstrap.js or compressing the version bootstrap.min.js ).Modal frame, modal frame is optimized, more flexible, in the form
Note: css-margin does not overlap, and css margin overlaps.Margin overlaps
From the Chinese version of css2.1 specifications
In CSS, two or more adjacent margin boxes (possibly but not necessarily sibling) are combined into a margin. Margin is
Use jquery to remove the line at the end of the time axis head.
Preface
Previously, similar to the Time Axis Structure, almost all of them were gray lines flying down, with no end. Today, this line is from the first dot to the last dot. The problem
Javascript uses regular expressions to separate thousands of digits by commas.
This example describes how to use a comma to separate the thousands of digits in Javascript based on regular expressions. We will share this with you for your reference.
The BootstrapTable treegrid function in the JS component series and the bootstrapgrid component
The previous article introduced the bootstrap treegrid component encapsulation process of the JS component series. Next we will focus on introducing the
Vue autonavi Map
AMAP has been successfully introduced in previous blogs. This is the previous address vue that calls AMAP.
Because of some requirements, you need to use the map peripheral function.
For the complete project code, see my github
1.
Explore vuex 2.0 and use vuejs 2.0 + vuex 2.0 to build a notepad application, vuexvuejs
Preface
This is not a tutorial, but the notepad application is an early online case, which is very helpful for learning vuex. My goal is to explore vuex 2.0 and
JS product filtering and js product Filtering
A small JS demo product is screened every day. Main knowledge point: comprehensive use of DOM Methods
:
Code:
Document mobile phone: hammer T1 hammer T2 nut U1 hammer M1 nut Pro
Vue-router route parameter refreshing solution
Scenario: A single-page application implemented by vue-router. After the logon page calls the logon interface, the server returns the user information and then uses the router. push ({name: 'index',
JS implements the message board function and js implements the message board function.
A message board for a small JS demo every day. Knowledge points: understanding and application of DOM Methods
Document
The above is all the
Shopping Cart function of js simple edition, js shopping cart
The examples in this article share the code of the js shopping cart function for your reference. The details are as follows:
javascript language essence 40 ¥
Example of bootstrap paginator paging front and back-end usage, bootstrappaginator
Examples of bootstrap paginator paging front and back-end usage for your reference. The specific content is as follows:
Preparations:
Bootstrap-paginator.js
In-depth understanding of path configuration in Webpack, and in-depth understanding of webpack
Preface
Webpack2 involves many path parameter configurations. If you do not know why, it is easy to confuse and error. This article collects the path
Vue error: Uncaught TypeError: Cannot assign to read only property 'export' of object' # 'solution,
Problems Found
Run a previous Vue + webpack similar to a small project on a news website and report an error.
Because I am not deeply engaged in vue
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service