,DEST,SRC1,SRC2,SRC3 ...)The first parameter, Boolean, indicates whether to make a deep copy, the rest of the parameters are consistent with what was described earlier, what is called deep copy, and we look at an example:var Result=$.extend (True, {}, {name: "John", Location: {City: "Boston", County: "USA"}}, {last: "Resig", Locatio N: {state: "MA", County: "China"});We can see that the nested SRC1 in the location:{city: "
data sent to the server. is automatically converted to the request string format. The GET request will be appended to the URL. View the ProcessData option description to disallow this automatic conversion. Must be a key/value format. if an array, JQuery automatically corresponds to the same name for the different values. such as {foo:["bar1", "Bar2"]} converted to ' foo=bar1foo=bar2 '. 示例:$.ajax({ type: "POST", url: "some.php", data: "name=Johnlocation=Bosto
prototype:Extend (BOOLEAN,DEST,SRC1,SRC2,SRC3 ...)The first parameter, Boolean, indicates whether to make a deep copy, the rest of the parameters are consistent with what was described earlier, what is called deep copy, and we look at an example:var result=$.extend (true, {}, {name:"John", Location: {City:"Boston", County:"USA"}}, {last:"Resig", Location: {state:"MA", County:" China"} } ); We can see that the nested SRC1 in the location:{city: "
Summary of ajax Method data parameter usage in Jquery
This article mainly summarizes the usage of the ajax Method data parameter in Jquery. If you need it, you can refer to it and hope to help you.
The Code is as follows:
$. Ajax ({
Type: "POST ",
Url: "some. php ",
Data: "name = John location = Boston", // The first method for passing Parameters
// Data: {name: "John", location: "Boston"} // The s
of the parameters are consistent with what was described earlier, what is called deep copy, and we look at an example:var result=$.extend (true, {}, {name: "John", location: {city: "Boston", county: "USA"}}, We can see that the nested SRC1 in the location:{city: "Boston"},src2 also nested the object location:{state: "MA"}, the first deep copy parameter is true, then the result of the merge Is:Re
ID name sexa lm 0 lxh 0b- ly 1 Xiao 1 using full outer connection age CP ID name sexa lm 0 lxh 0b- ly 1 Xiao 1c 4 yry 2 hua NaNd all 3 be NaNe nan nan nan nan 2There is another way to connect: concatThe Concat method is equivalent to the full connection in the database (UNION all), you can specify whether to connect by an axis, or you can specify joins in the same way (Outer,inner only these two types).Unlike the database is the concat will
extension of a net namespace in the jquery global object. $.extend ($.net,{ Hello:function () {alert (' Hello ');} })This is the extension of the Hello method into the net namespace of the previously extended jquery.third, the Extend method of jquery also has an overloaded prototype:Extend (BOOLEAN,DEST,SRC1,SRC2,SRC3 ...)The first parameter, Boolean, indicates whether to make a deep copy, the rest of the parameters are consistent with what was described earlier, what is called deep copy, a
example:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->var result=$.extend (True, {}, {name: "john" , location: {City: "boston ",county:" usa "resig ", Location: {state: "ma" ,county: "china" Span style= "color: #000000;" >} } ); We can see that the nested SRC1 in the location:{city: "Boston"},SRC2 also nested the object location:{state: "MA"}, the
consistent with what was described earlier, what is called deep copy, and we look at an example:var result=$.extend (True, {},{Name:"john, location: {City : "boston" ,county: "usa" {last: " resig, Location: {state: Ma ",county:" china " We can see that the nested SRC1 in location:{city: "Boston"},SRC2 also nested the object location:{state: "MA"} , the first deep copy parameter is true, then t
,DEST,SRC1,SRC2,SRC3 ...) the first parameter, Boolean, indicates whether to make a deep copy, the rest of the parameters are consistent with what was described earlier, what is called deep copy, we look at an example: Var result=$.extend ( True, {},{name: ' John ', location: ' {city: ' Boston ', County: ' USA '}},{Last: ' Resig ', location: {state: ' MA ', County: ' China '} }); we can see that the nested location:{city in Src1: "
the Hello method into the global object of jquery.5.2.2, $.fn.extend (SRC)This method merges src into the instance object of jquery, such as: $.fn.extend ({ hello:function () {alert (' Hello ');} });is to merge the Hello method into the instance object of jquery.The following examples illustrate several common extension instances:$.extend ({net:{}});This is the extension of a net namespace in the jquery global object.$.extend ($.net,{ hello:function () {alert (' Hello ');}})This
.
Copy Code code as follows:
$.extend ($.net,{hello:function () {alert (' Hello ');}})
This is to extend the Hello method to the net namespace of the previously extended jquery.
Three, jquery extend method also has an overloaded prototype:
Copy Code code as follows:
Extend (BOOLEAN,DEST,SRC1,SRC2,SRC3 ...)
The first argument Boolean represents whether to make a deep copy, the rest of the arguments are consistent with the previous description, and w
SQL language | Getting started our day-to-day use of SQL language in the work process, the most use or from the established database to query information. Next, let's look at how to implement various database query operations using SQL language.
SELECT ... From
For ease of explanation, we create the following datasheet named Store_information in the database.
Store_information
Store_name
Sales
Date
Los Angeles
$1500
jan-10-2000
San Diego
$
jan-11-2000
Los Angeles
$300
jan-12-2000
: {City: "Boston", County: "USA"}},
{last: "Resig", Locatio N: {state: "MA", County: "China"});We can see that the nested SRC1 in the location:{city: "Boston"},SRC2 also nested the object location:{state: "MA"}, the first deep copy parameter is true, then the result of the merge is:
Result={name: "John", Last: "Resig",
location:{city: "Boston", State: "MA", Count
paragraph mark inappropriately, the browser will only display it as a large segment.Error Demonstration:
Original code
566 E Boston Post RDMamaroneck NY 10543-9982United States of America
Show results
566 E Boston Post RD mamaroneck NY 10543-9982 United States of America
C
Problem Description: Another test, LJW decided to relax, turned on the TV, saw the basketball game, he immediately thought of the annual NBA Championship team. As a result of the review of tension, he only remembers part of the content of the memory is correct, may not be in chronological order, the contents of the memory may be duplicated. Now ask to learn programming you help LJW, to output the championship team by time (cannot repeat). (NBA from 1947A. D to A.D) input requirements: The first
prototype:
Extend (BOOLEAN,DEST,SRC1,SRC2,SRC3 ...)
The first parameter, Boolean, indicates whether to make a deep copy, the rest of the parameters are consistent with what was described earlier, what is called deep copy, and we look at an example:
var result=$.extend (True, {},
{name: "John", Location: {City: "Boston", County: "USA"}},
We can see that the nested SRC1 in the location:{city: "Bosto
parameter, Boolean, indicates whether to make a deep copy, the rest of the parameters are consistent with what was described earlier, what is called deep copy, and we look at an example:var result=$.extend (True, {},{Name:"john, location: {City : "boston" ,county: "usa" {last: " resig, Location: {state: Ma ",county:" china " We can see that the nested SRC1 in location:{city: "Boston"},SRC2 als
://www.CodeHighlighter.com/-->var result=$.extend (True, {}, {name: "john" , location: {City: "boston ",county:" usa "resig ", Location: {state: "ma" ,county: "china" Span style= "color: #000000;" >} } ); We can see that the nested SRC1 in the location:{city: "Boston"},SRC2 also nested the object location:{state: "MA"}, the first deep copy parameter is true, then the result of the merge is:
Code highl
some examples of common extension instances:
$. Extend ({net :{}});
This is to expand a net namespace in the jquery global object.Copy codeThe Code is as follows:$. Extend ($. net, {hello: function () {alert ('hello ');}})This is to extend the hello Method to the expanded Jquery net namespace.
III. The extend method of Jquery also has an overload prototype:
Extend (boolean, dest, src1, src2, src3 ...)
The first parameter 'boolean' indicates whether to perform a deep copy. The other parameters a
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.