Scripting of JavaScript classes
Defining variables and methods internally
The this declaration is used to define common public properties and public methods
In the internal var declaration, or simply do not write Var (implicitly
Let me write the two fork tree traversal, unfortunately at that time too much, in the initialization of the binary tree wasted too much time, in fact, simple object access and recursion can solve everything, at the end of the blame oneself prepared
JavaScript Asynchronous Programming method------"Publish/Subscribe"we assume that there is a "signal center" in which a task executes, a signal is "released" (publish) to the signal center, and other tasks can "subscribe" to the Signal Center
Arithmetic operators+,-,*,/,%,+ +, --+ +,-- divided into prefix form and suffix formprefix form plus minus 1 in executionThe suffix form executes plus minus 1Attention+ number to connect two stringsas long as one of the + connected operands is a
JavaScript typeof and instanceof are commonly used to determine whether a variable is empty, or what type it is. But there is a difference between them:typeofTypeOf is a unary operation that can be any type before it is placed in an operand.The
Two small loopsLoop for ( initialize ; conditions ; Incremental ){}While () when do {} and ()while ( condition ) { statement }Do while executing at least once while not necessarily
multi-branch Statement switchSwitch is almost the same as
first, The common dialog box1. Alert (""): Warning dialog box, function is to pop up a warning dialog box2. Confirm (""): OK Dialog box, pop up a dialog with OK and cancel Button--ok return true, Cancel return false3. primpt ("text to display"): A
The recent period of time is learning javascript, too much knowledge, need to carry out the actual use and summary, the National Day holiday just have time, wrote the following on the JavaScript summary, may be the understanding of the event is not
Use BootStrapValidator to complete frontend input verification and bootstrap frontend Verification
BootStrapValidator can be used to complete input verification in the front-end UI built based on BootStrap. Because this plug-in is fully based on
Examples of the mini-program Image component are described in detail.
The image component is also indispensable for a program. In this way, the image component in an app can be seen everywhere. Generally, image can be loaded in two ways. The first
Use auxiliary plug-ins to create web page carousel and plug-in apps
The carousel effect on the APP is the same as that on bootstrap.
I am using swiper. Just like in the previous article, I just need to introduce the swiper JS css file to html and
Applet (1) detailed introduction to new project hello WeApp, new project weapp
By default, the mini-program tool is successfully installed.
Create a project
AppID view public development platform settings view (https://mp.weixin.qq.com)
Enter the
Applet (2) detailed introduction to Window configuration, Applet window
Window is used to set the status bar, navigation bar, title, and background color of the applet. Note that the property configured in app. json overwrites the window property.
Applet (8) View component details, Applet view
When we first saw this effect, it was really consistent with the ReactNative effect, and the attributes were basically the same.
View is a simple view component.
Main attributes:
Flex-direction: two
Applet (9) scroll-view component details, Applet scroll-view
Scroll-view is a rolling view, divided into horizontal and vertical scrolling. Note that you must set the height when scrolling the view vertically. Otherwise, scroll-view will not take
JQuery implements the image carousel effect code, and jquery implements the code
Sort out the image carousel effects previously implemented by jQuery.
1. Automatic carousel when no operation is performed2. When the mouse is suspended on the image,
Bootstrap streamlined Tutorials: Mid-Autumn Festival and bootstrap
Bootstrap is easy to learn and provides exquisite styles. Just a little simple learning can make beautiful pages.
Bootstrap net: http://v3.bootcss.com/
Bootstrap provides three
Examples of arguments. callee usage in Javascript Functions and arguments. callee usage
This article describes the use of arguments. callee in Javascript Functions. For your reference, refer to the following:
JQuery-based navigation bar switching between Chinese and English
Let's take a look.Navigation bar for switching between Chinese and English:
I have implemented it in two ways: css3 and jquery.
First, let's talk about how to implement it with css3:
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