Home > front end >  For JQUERY syntax
For JQUERY syntax

Time:01-29

The function of u (n) {
Var u=window. The location. Href,
R=u.s plit ("?" ) [1],
T,
i;
Return r? (t="{", I=r.s plit (" & amp;" ), $. Each (I,
The function (n) {
='"' t + + I [n]. The split ("=") [0] + '" : "' + I [n]. The split ("=") [1] + '", "
}), t=t.s ubstr (0, t.l astIndexOf (", ")), t +="} ", n (t)) :! 1
}
N.a. ddCookie=t;
N.d eleteCookie=I;
N.g etCookie=r;
The n.g etUrlParams=u
} (abcapp)
Abcapp excuse me what does it mean, what is this grammar, I want to search for baidu this format of grammar learning how to check?
If in other JS calls to this function, according to the grammar, how to write, using JQUERY,

CodePudding user response:


The programmed Jane, is easy to understand

CodePudding user response:

https://www.cnblogs.com/kinblog/p/11261645.html to see that you knew

CodePudding user response:

Just as a () after the grouping operators, and the function has nothing to do

CodePudding user response:

The function u (n) {} this part is a function object
(abcapp) is behind calls the function object, abcapp as equivalent parameter n

CodePudding user response:

This two kind of situations:

A, when the function u (n) {} the function keyword appears at the beginning or in the {or; Or the if (), else, the for () statement, it is a "statement of function declaration", as a result of the "statement" is not returned,
Behind (abcapp) is an independent statement and u function has nothing to do,

Second, when the function keyword is not appear at the beginning or not in the {or; Or the if (), else, the for () statement, it is a "function", as the "expression" is to return the result, returns a function object reference address,
The function u (n) {} (abcapp) is called immediately after the u function, abcapp is as a parameter to n

CodePudding user response:

Just watch you send this part of the code the function keyword appears at the beginning, belong to the first case, but that doesn't make sense,
So you should the actual code is the second case, the function keyword is not appear at the beginning, this makes sense,
  • Related