AutoCAD 3DMAX C语言 Pro/E UG JAVA编程 PHP编程 Maya动画 Matlab应用 Android
Photoshop Word Excel flash VB编程 VC编程 Coreldraw SolidWorks A Designer Unity3D
 首页 > JavaScript

自定义jQuery插件方式实现强制对象重绘的方法

51自学网 http://www.wanshiok.com
自定义,jQuery,插件,强制,对象,重绘,方法

本文实例讲述了自定义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,插件,强制,对象,重绘,方法  
上一篇:JavaScript将数字转换成大写中文的方法  下一篇:jQuery定义背景动态切换效果的方法