引用:http://hi.baidu.com/billschen/blog/item/df1ad8228b0b0eaa4623e839.html
对callBack命令一直没有太好的理解,今天在w3cscholl上找到了一个好例子,豁然开朗!但callback是不是只有在animation时才起作用呢?jQuery官网很多地方都使用的callBack一词,相信还有很多含义的!
当前动画执行完后,再执行回调函数里的内容。
The callback parameter is a function to be executed after the hide effect is completed:
Example with Callback
|
Without a callback parameter, the alert box is displayed before the hide effect is completed:
Example without Callback
|