Two ways to define a regular expression object (REGEXP):
1 var pattern =/s$/;
2 var pattern = new RegExp ("s$");
The system learns two references to regular expressions:
1) Programming Perl by Larry Wall et al. (O ' Reilly).
2) Mastering
JavaScript frames are more dazzling. Since JavaScript is an interpretation of execution, it is natural to have a source of open-source genes. In order to be less restrictive, it tends to choose a framework based on the MIT/BSD/APL protocol.
The
The sort function of the array today can accept custom comparison functions, which is a wonderful thing.
This makes it extremely easy to sort numbers that are within the range of a numeric type.
var myarray = [ -80,-13.888,-10,-9.6,-9.4,-1,2,2,3,5
3. Constructors, classes, and prototypes
General statement:
Objects are familiar to us and are often used in programs. So, how do you differentiate between an object and another object? Class to do this, the object is an instance of the class.
Timing events: Through JavaScript, we can set up a piece of code after a period of time, not just execute immediately after a function call.
In JavaScript, timing events are easy to use, with two of events being used
SetTimeout () Start
JFO Remote Framework Version 1.0
Use:
Mainly for remote script embedding, sometimes we may need to embed dynamic scripts in some applications to achieve the data loading or some program control we want, then jforemote may meet our
Data type of javascript:
JavaScript data types are divided into two categories: original Type and Object type
original type:
number, String, Boolean, null, undefined
where null and undefined represent unique members
of their particular
Introduction to JavaScript Features
JavaScript programs are used to detect activities and react to user actions, such as when the cursor passes over a link, which becomes a different color, a form of reaction to the user's actions. JavaScript
These two days in busy decorating their department team site, the boss put forward a hope, in the Team site home page to put a timeline, so the department has any new events, agenda, can be displayed on the timeline. This is not particularly
The JavaScript language is object-based (object-based) rather than object-oriented (object-oriented). It is said to be an object-based language, mainly because it does not provide many features such as abstraction, inheritance, overloading, and so
Quiz1
Is there a "class" in JavaScript?
Everything is the object
In JavaScript, in addition to basic data (Undefined, Null, Boolean, Number, String), the rest are objects (object).
In fact, objects in JavaScript are a collection of data and
First, the basic JavaScript development environment
JavaScript reference and JavaScript APIs:
The JavaScript reference is used to create a library or DLL that contains JavaScript runtime, and then compile into a small "shell" program that connects
Perhaps you would wonder why object-oriented programming begins with arrays. This is because ... In the midst of all the relationships ... Hey, let's sell a few words here first to see what our familiar array is like in JavaScript.
1. Create an
IndexOf is strictly case-sensitive in JavaScript
How can you ignore the case?
Change them all to uppercase or lowercase, and compare them.
IndexOf the character position of the substring for the first time within the object
With toLowerCase or
Syntax for indexOf methods in javascript: Thestring.indexof (Substring,[n]). It looks for a routed substring in the specified string object, and if you specify parameter n, it can start the search forward (from left to right) from the specified
Definition and Usage
Definition and usage
The IndexOf () method returns the position of the the ' the ' of the ' the ' a specified string value in a string.
The IndexOf () method returns the position of the specified value at the first occurrence
In JavaScript, the string's function, replace () is simply too much to love. It is a flexible and powerful character replacement processing power, so I can not help but want to introduce it to you.
Replace () The simplest is the ability to be a
Table sorting, the general approach is to pass the sorted fields to the background to requery and sort, JavaScript can also do a simple table sorting, Memo code:
Type converter, which converts the column's field type to a type that can be sorted:
The Split function method in JavaScript is to split a string into substrings and then return the result as an array of strings. How to use:
stringObj.split( [separator[, limit]])
Where stringobj is a required option. The String object or text to
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