1.
In fact, I have never caught a cold catch on chain programming because it seems that the logic is not very clear. Today, I opened a chain programming program. The results show that JQuery's chain programming is still different, this reminds me of the chain programming in java, which has never been taken into consideration before. Now, I have been in misunderstanding.
The execution sequence of chained programming in Jquery is from the back to the back. For example, when grouping display similar to qq, use the Jquery statement:
$ (This). siblings ("li [class! = Header] "). hide (). next (). show (" fast ");
That is, no. You need to replace it
$ (This). next (). show (). siblings ("li [class! = Header] "). hide ();
2.
We didn't think much about the animation effect at first. Today we found that it is not the same.
For example:
$ (This). next (). show ();
Alert (123)
And
$ (This). next (). show ("fast ");
Alert (123) www.2cto.com
The two are different. If fast is not added, it is executed immediately. Therefore, it is very likely that the following statement is executed first and then this statement is executed. That is to say, a delay occurs when a speed parameter is added.
Author: angus_17