First, there are two ways to create functions in JavaScript, function declarations, function expressions, and so on.1, function declaration.function Boo () { console.log (123);} Boo ()2, function expression.var function () { console.log
The birth of everything in JavaScript worldSOURCE https://zhuanlan.zhihu.com/p/22989691I. UnfoundedAt first, there was nothing.The creator said: Nothing is a thing in itself, so there is null:Now we're going to build something out. But what if there
Original website: http://huangxuan.me/2015/09/22/js-version/JavaScript has a strange history of naming.It was first released as part of the Netscape browser (Netscape Navigator) in 1995, and Netscape named the new language LiveScript. A year later,
History of succession There are four forms in the history of succession, let's take a look.1. Traditional forms Fir.prototype.lastName = "STG"; function Fir () { this.age =; } var fir =
Syntax section
Type property: The default type is JavaScript, so you do not have to explicitly specify the type as JavaScript
JavaScript does not force a ";" at the end of each statement, and JavaScript automatically adds semicolons, but in
Arrays are used to store data in separate variable names, and you can manipulate arrays by means of methods such as adding data, deleting data, and so on.Creating/ Accessing arrays By specifying the array name and the index number (the index of the
Reference type Object typefunction A (num) {if (num>3) {a (--num); } Console.log (num); } A (5);//How to create an instance of an object var obj1= new Object (); Console.log (obj1); Obj1.name= "Wu Qiong"; Obj1.age=28;console.log (obj1.name+ "" +
The immediate execution function (functions () {...}) in JavaScript ()An in-depth understanding of the immediate execution function in JavaScript, the immediate execution of a function is called an immediate function, usually its notation is used
Differences between the js string indexof and search methods (detailed description), jsindexof
1. indexof Method
The indexOf () method returns the position of the first occurrence of a specified string value.
Syntax:
Note:There are optional
Element full-screen setting and listening instance, full-screen listening instance
Set full screen and exit full screen
// Full screen setting $ ('# fullScreen '). on ('click', function () {fullScreen () ;}); // exit full screen $ ('# exitFullScreen
How to Use jquery to read data from json and append it to html, jqueryjson
JSON format
Json is the most frequently used data format in Ajax. Communication between browsers and servers is inseparable.
JSON format description
Note that attribute names
Fetch usage and how to receive the value transmitted by JS. fetch receives the value transmitted by js.
Basic fetch method:
fetch('https://mywebsite.com/endpoint/', { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type':
Vue component development-LeanCloud text message sending function with graphic verification code, vueleancloud
0.15 million of developers use the LeanCloud service, including well-known applications such as zhihu, dongqiudi, IFAN er, and lakara.
Block-level element Row Element and display attribute, element display attribute
1. What is tag semantics? -> Make appropriate use of tags
-> What are common HTML tags? (Block label and intra-row label)
-> What is the difference between block tags
CSS3 basic element overview, CSS3 element Overview
This article will introduce several new CSS attributes (text-shadow, box-shadow, and border-radius. These CSS3 attributes are usually used to enhance the page layout.RGBAThe first three values are
Angular. js implements the shopping cart function and angular. js implements the shopping cart function.
The examples in this article share the code of the angular. js shopping cart function for your reference. The details are as follows:
AngularJs User Login problem handling (interaction and verification, prevent FQ processing), angularjsfq
This article introduces AngularJs User Login interaction and verification, and prevents FQ processing, as detailed below
1. Static Page
Css3 elastic box model flex Quick Start and getting started 1, css3flex
1. What is flex?
Flex is a layout method introduced in css3. It can flexibly and efficiently control the arrangement and alignment of elements. Most people call it elastic
Bootstrap common class name
BootstrapAssign a class name to a label(class name)To generate the effect tag of the corresponding class name.Grid options
row: Line
col-*-*: Column (First*Can beXs [Ultra small]/Sm [small]/Md [medium]/Lg
[Frontend NLP white learning path] css3 Adaptive Layout Unit (vw). How much do you know about this ?, Css3vw
Viewport units)
What is a viewport?
On the desktop side, the view refers to the desktop side and the visible area of the browser. On the
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