<style>p { background:yellow; margin:6px 0; } p.off { background: black; }</style>
</head> <">
Home >Web Front-end >JS Tutorial >jquery1.4 tutorial three new method tutorial_jquery
.clearQueue(): Removes all functions that have not yet been run in the queue
clearQueue() functions very similarly to stop(true), which simplifies stop(true). After 1.4, stop() is mainly used to terminate animations. The termination queue function uses clearQueue(). clearQueue() accepts one parameter: the queue name, which is to remove a specific queue.
Let’s take a look at the demo: