本文实例讲述了自定义jQuery插件方式实现强制对象重绘的方法。分享给大家供大家参考。具体实现方法如下:

jQuery.fn.redraw = function(){
 jQuery(this).each(function(){
   this.style.display='none';
   this.offsetHeight;
// no need to store this anywhere, the reference is enough
   this.style.display='block';
 });
};

希望本文所述对大家的jQuery程序设计有所帮助。

标签:
自定义,jQuery,插件,强制,对象,重绘,方法

免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
狼山资源网 Copyright www.pvsay.com