-------------------This digest from the Anonymous tutorial summary, I hope to beginners JS students have help, because it solves my Learning js many confusing ...Functions are the basis for modular programming, and for writing complex AJAX
1. Debugger;You can add a sentence to the JavaScript code debugger; to manually create a breakpoint effect.Do you need a breakpoint with a condition? You just need to if surround it with a statement:
if (Somethinghappens) {
Debugger
}
There are two ways to get the position of the browser scroll barThe first type: Document.documentElement.scrollTopThe second type: $ ("body"). ScrollTop ()The first is compatible with Firefox and IE, but Chrome will always be 0, and the second will
Beginners JavaScript, = = and = = Some confused, check the information, found a very good article, reproduced, but also as their own collectionOriginal address: http://blog.csdn.net/wang171838/article/details/8554305, really very good, the following
Briefly:Simply record the data structure map and array,In fact, in JavaScript, the weak type of scripting language, the array is also a dictionary, the following is mainly the simple use of dictionary arraysCode:1. Add a map to the array[HTML]View
ObjectiveThe variable in JavaScript is loosely typed, which means that when a variable is declared it can save any type of value, or it is not like SQL to declare that a key value of int can only hold the integer value, stating that varchar can only
A direct volume is defined as a string that is contained directly in a pair of slashesvar pattern =/s$/;Using the constructor RegExp () to define a regular expression equivalent to itvar pattern = new RegExp ("S $");Direct Volume characters
Features, methods
Type, return type
Description
NodeName
String
The name of the node, as defined by the node type
NodeValue
String
The value of the node, as defined by the type of the node
The method for converting binary code into ASCII code using JavaScript, javascriptascii
This document describes how to convert binary code into ASCII code using JavaScript. Share it with you for your reference. The details are as follows:
Enter
Summary of common usage methods of JavaScript strings, javascript strings
Retrieve class:
1) dynamic method:
CharAt: gets the character at the specified position of the string. (Parameter: Specifies the character location to be obtained)
1. Negative
Jquery is similar to Baidu experience sliding switching browsing effect, and jquery is similar
Jquery is similar to Baidu experience sliding switching browsing Effect
$ (Function () {wordStrong (); $ ("# content ul "). width ($ ("# content ul li:
How javascript references the type pointer, and how javascript works
Let's take a look at an example:
The above example seems simple, but the result is not easy to understand, and it is easy to confuse people-"isn't a. x pointing to object? Why is
JavaScript DOM Basics
DOM (Document Object Model) is the Document Object Model. APIs for HTML and XML documents (application interfaces );
DOM depicts a hierarchical node tree where running developers can add, remove, and modify a part of the page;
1
Discussion on JavaScript regular expression group matching and javascript Regular Expression
Syntax
Metacharacters (pattern): used for group matching repeatedly
Attribute $1 ~ $9 if it exists, it is used to obtain the matched substring in the
Js Method for changing the src value of the embed label, jsembed label src
This article describes how to change the src value of the embed label in js. Share it with you for your reference. The specific analysis is as follows:
Today, we have a need
Display: none; and visibility: hidden;, visibilityhidden
If you want to disable the display of a piece of code on the front end, you can simply use the display: none of css, in this way, the content below is automatically moved up or left on the
JavaScript variables, scopes and memory, javascript
JS variables are the essence of a loose type (not forced type), which determines that they are only used to save a name for a specific value at a specific time;Because there is no rule to define
Css id selector (3) and cssid SelectorI. ID Selector
The ID selector uses the "#" prefix identifier for identification, followed by the ID name of the specified element.
For example
#box{ width:100px; height:100px;}
The element ID name is unique
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