First, what is JavaScript?JavaScript is a page that transforms static Web pages into dynamic pages that enable users to interact and respond to events.Knowledge Expansion:HTML is the page structure, CSS is the page style, JavaScript is the page
1.user-agent detection
Detect only older versions of browsers
Do not rely on the UA detection, the user can be modified
2. Feature detectionThat is, we can not detect UA, directly detect specific methods (for example: getElementById)
What is a variable?A variable is a container for storing informationDeclaration of a variableGrammar:var Variable nameVariable name = value;Variables must first be declared and then assignedVariable can be assigned repeatedlyNaming rules for
The third chapter of the advanced programming of JavaScript mainly describes the basic concept of the language, the content is many and shallow, through the mind map can help us to clarify the context.
The JS
The difference between javascript,while and do while:Scene One: The small box body has 100 yuan, with while output can eat how many times rice noodles, a bowl of vermicelli 12 yuan, finally still how much money left.var money = +; while (money>=12)
When the constructor is called, a pointer to the original prototype is added to the instance, and we can add properties and methods to the prototype at any time, and can be reflected in the instance, but if the prototype object is re-created, it
1. By default, the browser parses the HTML code from top to bottom, and of course the script is embedded in the HTML, so it is also in this order, and the files that are introduced outside do not change this order.2. Any JavaScript code will be
Origin of the problem:12345Document678 9TenPanax NotoginsengYou can see that when an incoming parameter is an array, the function is called, the value of the parameter changes, but the value of the parameter is unchanged when the number is
History ObjectThe history object records the pages (URLs) that the user has browsed, and enables the browser to move forward and backward with similar navigation capabilities.Note: starting from the moment the window is opened, each browser window,
How to manipulate data:1 vararr = [1,2,3,4,5];2 3Arr.push (6,7);//You can add a sequence (1+) to the last digit of the array, and return the length of the array. 4 5Arr.pop ();//deletes the last digit of the array. and returns the contents of that
Everyone has seen a certain degree of malicious advertising, you shut down and come out again! Why, JS to tell youEffect Poke hereHtmlBody> H3class= "Whitecolor">Can't close the bullet box, can't kill the cockroach!H3> DivID= "Middlebox">
Responsibility Chain Model: definitionThe responsibility link mode is also called the responsibility chain pattern, is one kind of object's behavior pattern; it is a chain structure, each node has the possibility of two operations, either processing
Language English Math Chinese content English content Math content Function Switchtab (tabbtn,tabcontent) { var tabnav = document.getElementById (tabbtn); var tabcont = document.getElementById (tabcontent); This.tabnavli =
Two Methods of EasyUI Pagination paging: easyuipagination
EasyUI's datagrid supports server-side paging, but few official materials are available. The following summarizes the server-side paging mechanisms of the two datagrid, one isDatagrid default
Understanding of browser kernel and understanding of browser kernel
It is mainly divided into two parts: the Rendering Engine (layout engineer or Rendering Engine) and JS Engine.Rendering Engine: It is responsible for obtaining webpage content (HTML,
Css attribute selector and css Selector
1. [class ~ = "Flower"]: select a class with a flower.
Class = "flower ss"
Class = "ss flower"
2. [class | = 'top']: To select a class starting with top, you must have '-' connected or a separate top
[CSS] float, css floatHow elements float
The horizontal movement of elements means that the elements can only move left and right, but cannot move up or down.
A floating element moves left or right as much as possible until its outer edge hits the
Center css elements and center css ElementsHorizontal Center
If it is a row element, use text-align: center for its parent element;
If it is a block element (not floating), there are two ways to horizontally center it, one is margin: 0 auto; 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