Php-jquery-json-3

Source: Internet
Author: User


Memcache Redis Cache Technology
There is a difference between int and text in MySQL, and memory by byte length
The spaces in the selectors in jquery are operators, so no more, no less, very strict
Hierarchy operator: space greater than equal sign minus tilde
Filter: First last even odd GT Lt also has an ordinal selector index ()
Relative selector: $ ("#tb tr"). Click () with the difference: $ ("TD", $ (this)). Note that the second argument is separated by a comma

There are two ways to set the style of jquery: CSS, direct, small, simple, addclass (more styles)

Multi-Criteria Selector: $ ("P, Div,span, MenuItem"). The hierarchy selector $ ("div li") gets all the LI elements under the DIV: including the child
Elements, grandson elements, ...

The difference between the three is: multi-conditional option: All selections are in the same quotation mark, separated by commas.
Relative selection: 2 parameters are separate
Hierarchy selector: In a quotation mark, use a space to differentiate

A colon in jquery:
Representation type and expression rate
Expression type: For example: button, all elements in form forms can be used such as:: TextBox,: Checkbox:select, etc.
Presentation filtering: Includes basic elements over/content filtering/visibility filtering
: Contains:empty:has:p arent:hidden:visible

JS php Weak type, does not enforce type representation in denominations determines type operation when automatic implicit conversion type generally from form
The data obtained in the string js/jquery is a plus sign that indicates that a string connection also represents an arithmetic operation but previously preferred

Colon: attribute filter, also hierarchical, if it is a child element, the middle of the "space operator"
The middle brackets in jquery:
Represents an array collection
Second, the property selector/attribute filter in XPath: $ ("Li:not[ul]")

Not both can do the method is used, or you can do the colon filter directly using:
$ ("Li"). Not ("[UL]") = $ ("Li:not[ul]")

$ ("#faq"). Find ("dd"). Hide (). End (). FIND ("DT"). Click (function () {
var answer=$ (this). Next ();
if (answer.is (": Visible")) {
Answer.slideup ();
}else{
Ansewer.slidedown ();
}
}

Clone () method: Clone = Copy the matching DOM element and select a copy of those clones. A copy is selected.
<script type= "Text/javascript" >
$ (function () {
$ ("button"). Click (function () {
$ (this). Clone (). InsertAfter (this); Note that clone () is only in memory, and is not joined to the DOM node, so the calling method to display InsertAfter etc. ...

});

});

</script>


Buy Compass compasses

Use of Var:
One: class member variables for PHP
Second: JS jquery and other scripts in the function of local variables
Do you want to omit $ when $this parameters?

jquery Learning Tutorial (v): Selector Synthesis Example
Walkingp
The following examples illustrate the use of several selectors, and demonstrate the use of jquery to achieve the interval line color change/highlighter effect/check box checkbox Select all anti-selection effect

jquery is powerful, JS programming, you can do any processing of the DOM, but can not misuse jquery to use the DOM as a rubber candy, how to pinch how to pinch

Browser FF Debugger is the use of JS jquery?

If more than one Ajax content needs to be returned, if it is broken into multiple server files, the file organization can be organized into a ajax.php file, then
Selector in ajax.php to select the actual part to return


jquery Ajax is a 4 function:
Load get post Ajax

-----------
JSON is only useful for arrays and objects
JSON is leaner and more efficient than XML
PHP side has parsing JSON module/encoding and decoding ha function: Json_decode json_encode. And in the client there is jquery parsing json.

A continuous $ (this) error may occur:
$ ("#some"). Bind ("click", Function () {
if ($ (this). Next ("Div.content"). Is (": visible")) {
$ (this). Next ("Div.content"). Hide (); This can be an error here: This is intended to refer to the front of the #some, and in fact it points to the second line of $ (this). Next there's going to be a mistake, so
In this case, the previous object will be directly represented by an exact variable!

}
}

jquery treats the DOM as a rubber candy, so you can pinch it.

Browser FF Debugger is the use of JS jquery?

If more than one Ajax content needs to be returned, if it is broken into multiple server files, the file organization can be organized into a ajax.php file, then
Selector in ajax.php to select the actual part to return


jquery Ajax is a 4 function:
Load get post Ajax

-----------
JSON is only useful for arrays and objects
JSON is leaner and more efficient than XML
PHP side has parsing JSON module/encoding and decoding ha function: Json_decode json_encode. And in the client there is jquery parsing json.

Php-jquery-json-3

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.