Originally wanted to write JS object-oriented note (ii) about encapsulation, but in the case of the instance code, found that the concept of the scope of the thing is a little vague, after flipping through the rhino, a little feel, thinking of the
Variable 1, variable definitionIn JavaScript, you use var to define variables, as shown in the following format:var name = 1;If only the variable is declared and the variable is not initialized, then the value of the variable is undefined; (why
Adding an element turns out to have insertadjacent this way. insertAdjacentHTML (swhere,html), insertAdjacentText (Swhere,text), Insertadjacentelement (sWhere,element)This is IE get out of so IE basic support,Chrome (47.0.2526.106 m) supports three
Prevent bubblingThe method is E.stoppropagation (), ie is using e.cancelbubble = TrueStoppropagation is also a method of event object that blocks the bubbling event of the target element, but does not block the default behavior. What is a bubbling
Measurement rapid development platform, in the use of document display parts or document editing parts, you can easily implement HTML script to show the data, since it is the style of HTML, the various scripting syntax of HTML can be used. For
CSS inline style and external link Style
A Brief Introduction to the inline style and external style of CSS:Many friends may have been concerned about the concept in the title or did not pay special attention to it, but it does not mean that they
9 standard best practices for front-end code: CSS and css
Front-end engineers pay high attention to writing standard front-end code. These best standard practices are not published by the authoritative organization, but are summarized by a large
Let's talk about JavaScript synchronization and Asynchronization and javascript Asynchronization.
1. hand-drawn a picture description.
2. Why is JavaScript a single thread (here I will refer to instructor Ruan Yifeng)
The single thread of
Jscontroller solves the problem that JS cannot call Controller.
Let's talk less. Let's take a look at the scene of the accident.Accident SceneNow all I need to do is call the controller Method in the background through JS. We can see that Jquery and
Implement page pop-up effect based on Javascript.
The pop-up layer is a very practical function. Many websites use this method to log on and register, such as Baidu:
Features of the pop-up layer: When you click "Log on" or "register", a logon or
14 excellent JS front-end frameworks, libraries, tools, and time to use
This article mainly describes some popular Javascript web Front-end frameworks, libraries, and their application scenarios.
The emergence of new Javascript libraries makes the
CSS code for rotating text and CSS code for rotating text
CSS code for rotating text:It is difficult to implement the text rotation effect if CSS2 is used, but CSS3 already provides ready-made attributes. The following is a code example to share
Full Screen setting of webpage background images and full screen webpage background images
1. First, set the height of the body to 100%, and the overflow attribute to hidden (overflow hidden)
2. Set div width and height to 100% in the body, overflow
A Brief Introduction to the functions of no-repeat and a brief introduction to no-repeat
No-repeat:It is used to set whether the background image is repeated. For example, if the size of an element is greater than that of the background image, if
Explanation of Jsonp keywords and differences between json and jsonp, differences between ajax and jsonp, and jsonpjson
Preface
The first time I heard about jsonp, it was actually two years ago. At that time, the lottery module on the activity page
Front-end: Background, floating, and positioning; front-end: Floating Positioning
Background. The background area of the element is in the content area and the padding area, and the border is painted on the background. This means that if the border
Seven suggestions on performance tuning by AngularJS, and angularjs Performance Tuning
AnglarJS, as an excellent Web framework, can greatly simplify the burden of front-end development. Recently, Sebastian föstl said in an article titled AngularJS
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