Alternative js Writing Method

Source: Internet
Author: User



The implementation function is estimated to be like this:

[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
After the code is run to test (), call the prepared method E () and pass two parameters.
One is the so-called object ju, and the other is a function written only.

Then pass the two parameters to the E () method. Of course, the E () method is already waiting for parameters.

What will he do when he waits for a parameter that has not been seen for a long time... (to be continued)



Continued introduction:
The E () method mentioned above has seen the parameter ju and a function that has not been seen for a long time.

Of course, E () is used as the transfer execution method for these two parameters. It is called two younger siblings (variable a and variable B)
To reference everything about them.
A = ju
B = function (B)
{
B ();
If (a = "gyyy .")
{
B ("G ");
}
}

Then var c = C (a); let the younger brother (variable c) GET a, that is, the ju length referenced by
Then execute the function passed to the E () method referenced by younger brother B according to the length.

And pass two parameters to the function.
One is a [d], and the other is d.

Then, start executing younger brother B. Now this younger brother B is the function passed to the E () method at the beginning.
The function passed to the E () method accepts a parameter, as shown on the right: function (B ){...}

B In the currently executed function is a [d] passed from the E () method.


That is to say, the error is in the passed a [d]. When B (a) is executed, a is passed at the beginning of test ().
The executed B (a) B () is the [d] passed from the following E.
That is to say, a [d] is actually a method.

I guess ju should be an array containing many methods.
The principle is just like this. It's troublesome, just to get a's access permission.

[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

Related Article

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.