jQuery基于扩展简单实现倒计时功能的方法

jQuery基于扩展简单实现倒计时功能的方法

本文实例讲述了jQuery基于扩展简单实现倒计时功能的方法。分享给大家供大家参考,具体如下:

jQuery.fn.countDown = function(settings,to) {
settings = jQuery.extend({
startFontSize: 36px,
endFontSize: 12px,
duration: 1000,
startNumber: 10,
endNumber: 0,
callBack: function() { }
}, settings);
return this.each(function() {
//where do we start?
if(!to

© 版权声明

相关文章

暂无评论

none
暂无评论...