The way JavaScript is loaded, is always to use script on the page to declare, and dynamic loading of these methods, and dynamic loading, in many JS libraries can be very good to deal with, so as not to block the loading of other resources, and its
Last Updated 2016-04-02 16:14:06
Objective:This section tells you how to dynamically insert content into HTML by using JSP syntax to change the existing content of HTML.If we dig deeper into the DOM tree, we know that HTML content actually
1 implicit conversion rules for javascript:If there is a Boolean type, it is converted to a numeric value for comparison.If there is Nan, return falseIf the string, then divided into three cases: the other side is a string directly compared, the
The Observer pattern is also known as the publish-subscribe model or message mechanism.The basic idea is that the observer is a static (or global) object that provides three methods: Publish, subscribe, unsubscribe. Subscribers who want to get the
1 JavaScript has six data types: numeric type, String type, Boolean type, object, NULL, and defined, where objects include function objects, array objects, and so on. Of these six data types, in addition to objects, the other five are all basic data
As a front-end beginner, should continue to study every day, to summarize, to review, to contact the more fresh things. But this period of time is very impetuous, although also has been studying, oneself can absorb less and less. Today in this
The scenario I'm using here is to plug the values of all input in the form into the array and then remove the duplicate values. If the length of the array is the same as the length of the original array, the description is not duplicated and if the
Storage type
Store key value pairs
Value can only be of type string, other types are automatically converted to string
Method
GetItem (name) check
RemoveItem (name) Delete
SetItem (name) Increase/change
Function Section Learning:+parseint ():The-parseint () function converts any input value it receives (usually a string) to an integer type output, and returns Nan if the conversion fails.-parseint ("parameter", second parameter cardinality): No
var url = URL address; var _script = document.createelement (' script '); _script.type = "Text/javascript"; _script.src = URL; Document.head.appendChild (_script);The use of Ajax requests can not cross-domain, so find this string of code, can
Reprinted: http://www.cnblogs.com/xdp-gacl/p/3926848.html aloof WolfOnly to find a way to succeed, not to find excuses for failure!JavaScript gets browser type and versionFind a good code that uses JavaScript to determine the browser and browser
A garbage collectionJavaScript has an automatic garbage collection mechanism. The garbage collection mechanism identifies the variables that are no longer being used. Destroy at a fixed interval, freeing up memory.1. Find out the methods of the
Solve the gap between tags caused by the inline-block attribute.
1. Set a parent element for the inline-block element.
Set the font-size of the parent element: 0 ;. The child element font-size is set to an appropriate size. If the child element
The most common naming rules for styles.
Naming rules for front-end development are very important, but there is a large part of naming rules on the Internet. Below are some common phrases I have summarized. I hope they will help you, but they are
Atitit. Toast alert loading js control atiToast v2 new feature, atititatitoast
New Features of Atitit. Toast alert loading js control atiToast v2
1.
Principle of appending multiple txt files in a row
Var txt = document. createElement ("p ");
Txt.
Use CSS3 to create a small triangle icon and css3 to create a triangle
I don't want to talk much about it. I want to write code directly and hope it will be helpful to everyone!
1.html code:
2.css code:
. Triangle_border_right {width:
CSS Selection Operator details, css Operator details
1. Type Selector
What is a type selector? The identifier that uses the existing tag type in the webpage as the name. Body is a tag type in a webpage. div, p, and span are all.As follows:
Body {}
Fragmented records of HTML-related knowledge and experience,
1. When tag input is type = "file", name is a required attribute.
1 2 3 4 5 6 7
When tag input is type = "file", name is a required attribute. If the name attribute is not
Use jquery to create an animation triggered by scrolling to a specified position.
The animation feature of CSS3 is used for implementation. It is not compatible with IE and is applicable to mobile phones.
sas trigger an animation
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