Faced with a wide variety of frameworks on the market, many Web development teams feel difficult to choose, performance, speed, compatibility and so on, how should we choose? I've introduced a tool and a handbook that will give you and your team the
1. The most important three symbols in regular expressions:1.1 BIn regular expressions, B has 3 types of parentheses:1.1.1 square brackets "[".The square brackets "[" are the characters that need to be matched. Bracketed content only matches one
1. Data typeJS data type Total 6 kindsrespectively:Numeric, String, Boolean, Undefind,null, object the most basic data types are 3 kinds: numeric, String, and Boolean objects can be divided into 3 subtypes: narrow objects, arrays, functionsnarrow
First, get the element1. Find Elements by IDHow to obtain document:The way to get elements by ID is as follows:
12
varidq = document.getElementById("idq");alert(idq);
2. Get elements based on class
12
Main contents of this chapterFirst, the introduction of JavaScript;
Composition
How to use in HTML
First, the basic data;
Comments
Basic knowledge
Named
Variable
Underlying data type
Operator
Assignment character
I. Basic points of knowledge1, Dom is the Document Object model, is an API for HTML and XML documents (application interface)2, Dom depicts a hierarchical number of nodes, allowing developers to add, remove changes and other operations3, all the DOM
Re-use of the image can be usedvar A,b;with (document) {A = getElementById (' AID ') b = getElementById (' BID ') } About node Access:ParentNode parent NodePreviousSibling the first sibling node of the current nodeNextSibling the next
Learning Goals1. Mastering the String Object method:CharAt ()charCodeAt ()IndexOf ()Lastindextof ()CharAt () andGrammar:Stringobjcet.charat (Index)Function:returns a string from the index position in the stringobject. DescriptionECMAScript5 can use "
This is a special keyword in JS that is automatically saved in the scope of all functions.Why do you use thisThis provides an object way to implicitly pass a reference to an object, so the API design can be simple and easy to reuse. Look at the
Learning Goals1. Mastering loops and loops nesting2. Print stars3. Print 99 multiplication tableNestingDescriptionThe following rules are followed when loops and loops are nested:1. the outer layer is false when the inner layers do not execute;2.
Learning Goals1. Mastering The data types of JavaScript2. mastering The typeof operator3. Mastering Undefined4. Master Nulldata types for JavaScriptThere are 5 simple data types (also known as basic data types) in ECMAScript:Undefined, Null,
Functions in ECMAScript are declared by using the function keyword followed by a set of parameters and the body of the function. The basic syntax is as follows,1 {2 function functionname (arg0, arg1,..., argN) {3 statement4 }5 }The function
Tag: class This super Color const CTI function implements Func implementation inheritanceThere are roughly 5 ways that JavaScript implementations are inherited:1th, inheritance is implemented by constructor function function parent () {
Original addressJavaScript has a lot of quirks and incomprehensible places. Among them null& undefined is more interesting. Now that you have it, why does JavaScript have to get a null?Equality ComparisonLet's start by having a look at the following
Use JavaScript to convert numbers to uppercase amounts, OK 0.0 to code!varDigituppercase =function(n) {varfraction = [' angle ', ' min ']; vardigit = [ ' 0 ', ' one ', ' II ', ' three ', ' the restaurant ', ' Wu ', ' Lu ', ' qi ', ' ba
JavaScript, when born in 1995, is designed to handle form validation on the server side, with the server-side validation changed to a service-side validation, greatly increasing the speed (when the network is slow) today JavaScript is a
The 90.push () method can receive any number of arguments, added to the end one by one, and returns the length of the modified arrayThe Pop () method removes the last item from the end of the array, adheres to the value of length, and then returns
To allow JavaScript to respond to a user's actions, first bind the event handler to the DOM element. The so-called event handler function is the function that handles the user operation, and different operations correspond to different names.In
Html basic notes, html notes
1 HTML Introduction
HTML: hypertext markup language );
Directly parsed and executed by the browser (No compilation process );
Hypertext: audio, video, and image are all hypertext;
Tag: is a tag. Html pages are composed
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.