Implementation effect:
Implementation principle:
Read the code in HTML,
Then skip the code between "<" and ">",
The format of the content is saved by the way
And then a timer, output by one.
Basic knowledge to use:
jquery has two methods for developing Plug-ins, respectively:
jQuery.fn.extend(object);
jQuery.extend(object);
jQuery.extend(object);
To extend the jquery class itself. Adds a new method to the class.
jQuery.fn.extend(object);
Add a method to the jquery object.
$.fn
Refers to the jquery namespace, plus the methods and properties on FN that are valid for each of the jquery instances.
such as extended$.fn.abc()
Then you can do it like this:$("#div").abc();
$.fx
is the jquery effect.
such as the use of display, sliding, fade, animation and so on.
$.fx.off
You can turn off the animation and actually display the results directly.
Implementation code:
Expand
Let's briefly introduce jquery $.extend
:
$.extend
Extend the jquery object itself.
Used to add new functions to the jquery namespace.
As follows: Add two functions to the jquery namespace.
Summarize
We can see the effect of their own operation, so easier to understand the study, the above is the entire content of this article, I hope that the study and work can help, if there are questions can be exchanged message.