Study the automatic landing process of Sina Weibo, which involves its cryptographic algorithm script, which has a code in the following form:
(function() {...}). Call (name)
Where the red .... is the internal implementation of the function, name is the name of an object. This form of JS has never seen AH (forgive me js this aspect less AH). Then Baidu a bit about the meaning of the following:
The effect of. Call is actually to use name as this in the domain where the preceding function is located, that is, the this in the function is equivalent to the reference name.
The actual meaning of this code can be considered: the specific implementation of the function of the variable name of the transformation, or more simply say the implementation of the function is the variable name of the concrete implementation, in a sense it is equivalent to:
var function (){...}
Like (function () {}). The JS statement for Call ()