fn
) as a timed event to run at a given time interval (
interval
) for a given number of times (
times
) optionally belaying event triggering if the previous iteration is not complete (
belay
). If times is set to 0, the number of times the method is called is unbounded. A label is also set for the given timed event either to the provided string (
label
) or to the string representation of the interval provided. Additionally, the interval can be defined by using a string such as "3s" for 3 seconds.
fn
) a certain amount of time (
interval
) after being added to the elements in the jQuery object. A label (label) is also set for the timed event either to the provided string (
label
) or to the string representation of the interval provided.
label
) and function (
fn
). If neither is specified, it will stop all timed events acting on the elements in the jQuery object. If only the function is provided, then it will stop all timed events calling that function regardless of label. Finally if only the label is provided, it will stop all timed events given that label at initialization.
转载于:https://blog.51cto.com/huqilong/108741