First, let's take a look at the effect of the two-color table created using jQuery:
This two-color table should be very professional for those who are new to creating web pages, but it is indeed very simple.
Step 1: Write css.
Step 2:
The previous articles have already explained the basic framework design of jQuery. Let's take a closer look at this article, jQuery's ready function.
JQuery's ready function is equivalent to the main function in C language. It indicates that
Before we start, let's take a look at the so-called slide. First of all, we generally talk about slides. The first thing we think about is PPT. (Not PPTV, powerpoint _ ^). The role of the PPT is clear. It is displayed on a screen,Less text, more
JQuery brings us great convenience in writing web applications. Many jQuery plug-ins are favored by users. Basically, the jQuery plug-in is written in the structure of anonymous functions, and jQuery objects are introduced as parameters.
The
JavaScript has no integrated object, so we use the following three methods to simulate it:
1. js prototype implementation inheritance
Function Person (name, age ){
This. name = name;
This. age = age;
}
Person. prototype. sayHello = function (){
JavaScript Array Object Reference ManualArray objectArray objects are used to store multiple values in a single variable.
Syntax for creating an Array object:New Array ();New Array (size );New Array (element0, element0,..., elementn );ParametersThe
$ (This). children (). eq (1). text () gets the displayed value.((This).children().eq(1).html () obtains all content between $ ('. Trselected', grid). find ("td"). eq (7). text (); get the content of a selected row
Traverse the table
$ ("# Grid
Continue regular expression-quantifiers:/*** Quantifiers can specify the number of times a specific mode appears. When a specified mode appears* When the number of times, you can specify the hard number (for example, a character should appear three
JavaScript code/// Check whether the input date is in the correct date format:/// Supports four input formats: yyyy-M-d, yyyy-MM-dd, yyyy/M/d, and yyyy/MM/dd.
Function checkDate (strInputDate ){// Define a constant array of months and daysVar DA = [0
1. JS read JSON
When writing AJAX, it is often necessary to parse a string returned from the server. Here we will briefly introduce two formats of characters returned by the server and the parsing methods of JS for them.
JSON is the JavaScript
Page A contains an iframe. Some html code is as follows:
[Html] A page contains the following js scripts:
Www.2cto.com[Javascript]Var System = {CloseFrame: function (){Try {Var frames = document. getElementById ("ifmApp ");Var AppHelper = frames.
1. JavaScript variable typeJavaScript variables are classified into basic types and reference types. the basic data type is a simple data segment that directly has a stack space. This type directly stores the value at a location in the memory. the
2. Function Object)
@ Wu Qiong Adam (Sina Weibo)
Function objects are first an object. Therefore, they also have _ proto _ links and Delegation. Another special feature of a function object is that it has an attribute called prototype
In js Code, add a page through innerHTML. The Code is as follows:
After running, it is found that the style in the page style is not parsed under ie, the page is displayed incorrectly, and the style in ff is displayed normally. Ask a master, read
DOM = document + object + model Shopping List what to buy This is uppercase Don't forget to buy this stuff. A tin of beans Cheese Milk JavaScriptAlert (document. getElementsByClassName ("special"). length );Var shopping = document.
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