JavaScript Object-oriented is a concept of fire in recent years, because the younger brother talents, although has done a lot of web projects, looked on the internet a lot of esoteric materials and tutorials, or their profound theory of knowledge,
These two days with virtual machine installation system, ready to use virtual machine to separate development environment and database, the idea is as follows:
1. Development environment for host
2.Guest is a database server, each server is a
Objective:
Recently, the company's app to speed up the development of the efficiency of selected part of the use of H5 development, from the current market for most of the app, roughly divided into native app, Web app, Hybrid app three ways,
1.document.write (""); Output statement
The annotation in 2.JS is//
3. Traditional HTML Document order is:document->html-> (head,body)
4. The DOM order in a browser window is:window-> (navigator,screen,history,location,document)
5. Get the name
In JavaScript, the data type is divided into integral and floating-point types, where the floating-point type has no single or double precision, and all variables are declared with Var only (well, don't remember int long float double ...). What type
A. JavaScript introduction:Before learning JavaScript, there are some things you need to know first:HtmlXhtmlI don't think these need to go too deep, understand a probably on the line.JavaScript is:JavaScript is designed to add interactive behavior
Example
this pageis an example. Click on a paragraph, edit it, and then click Ready. Your changes will be presented.
Problem
The first problem I encountered was that I wanted to use a text box as the editing area. At first I didn't put the content
Excerpt –parse The JavaScript SDK now offers a promises model that supports most asynchronous methods, so what does that mean, and you'll understand when you read the following.
"Promises" represents the next great paradigm in JavaScript programs,
Wow--it's a dangerous subject, isn't it? Our understanding of what is essential will, of course, change as we understand how to solve the problem. So I wouldn't lie--the nature of what I understood a year ago was unfortunate and incomplete, because
Form validation is used to occur on the server, the client has entered all the necessary data, and then presses the Submit button. If the data of some of the clients that have been entered is either in the wrong form or simply lost, the server sends
A multirow regular expression is a read-only Boolean property of an object. It specifies whether a specific regular expression is to be used for multiple-line matching, that is, whether or not the "M" property is created.Grammar
Regexpobject.
The method returns the exponent power of the base, that is, baseexponent.Grammar
Math.pow (base, exponent);
The following are the details of the parameters:
Base: Bases
Exponents: The index of the base
return value:
The JavaScript date.getyear () method returns the year of the specified date according to the Universal Time. GetYear is no longer in use and has been replaced with the getFullYear method.
The value returned by GetYear is the current year minus 1900
1, Using Javascript eval method.
2, using a Veriables Save Object "This" reference.
3, in InnerHTML, we can using a String to pass the prototype method.
e.g.
This is a very typical application of a background-position-x. The technical content is not high, but the idea is worth thinking about, proving that there are many things that can be adapted to DHTML. With the background map, if done more complex,
Use JS to do time correction, get the time of the machine, there is a bug.
Use JS can also get to the server time, the principle is to use AJAX request, the return of the header information on the server side of the time information, get to it.
The commonly used metacharacters are:
•. Find a single character, except for line breaks and line ends;
\w Matching letters, Chinese characters, numbers, underscores and other symbols;
\s matching whitespace (including spaces, tabs, etc.);
\d
1.
Using the properties of a variable
2.
Converts all letters in a string to uppercase letters.
3.
JS in a variable to add a hyperlink
4.
The IndexOf method, where the first occurrence of a specified character in a string is positioned. If
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