`
wangduowu
  • 浏览: 132121 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

jQuery plug-in BlockUI

阅读更多

 

  1. Overview   
  2.   
  3. The jQuery BlockUI Plugin lets you simulate synchronous behavior when using AJAX, without locking the browser[1]. When activated, it will prevent user activity  with  the page (or part of the page) until it is deactivated. BlockUI adds elements to the DOM to give it both the appearance and behavior of blocking user interaction.    
  4.   
  5.     
  6.   
  7. Jquery BlockUI 插 件 使你能够在不用锁定浏览器的情况下利用AJAX实现模拟同步。当插件被激活,他将会屏避用户对于页面,或者一部分页面的操作知道他被释放。 BlockUI通过向DOM添加节点的方式,使得页面设计者能够设计出能够将用户超作屏避的界面和超作方式。   
  8.   
  9. Usage is very simple; to block user activity  for  the page:    
  10.   
  11. 使用起来非常简单,下面的语句将会屏避用户对当前页面的一切超作:   
  12.   
  13. $.blockUI();   
  14.   
  15. Blocking  with  a custom message:    
  16.   
  17. 屏避的时候给用户的提示信息;   
  18.   
  19. $.blockUI( '   
  20.   
  21.  Just a moment...   
  22. ' );   
  23.   
  24. Blocking  with  custom style.:    
  25.   
  26. 利用用户设定的样式屏避用户操作   
  27.   
  28. $.blockUI( { backgroundColor: '#f00', color: '#fff'} );   
  29.   
  30. To unblock the page:   
  31.   
  32. 解除页面锁定    
  33.   
  34. $.unblockUI();   
  35.   
  36. If you want to use the  default  settings and have the UI blocked  for  all ajax requests, it's as easy as  this :   
  37.   
  38. 如果想在得到所有Ajax请求之后为页面解锁,很简单,可以这样作:    
  39.   
  40. $().ajaxStart($.blockUI).ajaxStop($.unblockUI);   
  41.   
  42. [1] Using the XMLHttpRequest object  in  synchronous mode causes the entire browser to lock until the remote call completes. This is usually not a desirable behavior.    
  43.   
  44. [1]在同步模式下使用XMLHTTPRequest对象会引起整个浏览器出于被锁定的状态,直到所有的远程请求完成。而这一现象并不是我们所希望看到的。  
分享到:
评论

相关推荐

    jQuery Slide plug-in 实做资料

    jQuery Slide plug-in 实做资料,很好的例子

    jQueryAPI-090129.rar jQueryAPI-090129文档

    jQueryAPI-090129.rar jQueryAPI-090129文档 jQueryAPI-090129参考文档 jQueryAPI文档,参考文档

    开发工具 jquery-1.11.3.min

    开发工具 jquery-1.11.3.min开发工具 jquery-1.11.3.min开发工具 jquery-1.11.3.min开发工具 jquery-1.11.3.min开发工具 jquery-1.11.3.min开发工具 jquery-1.11.3.min开发工具 jquery-1.11.3.min开发工具 jquery-...

    jquery-blockUI-2.70.js

    官方最新版的 jquery-blockUI,本人没有对其进行任何的修改,完全是从官网上下载了。

    jquery-3.3.1.js和jquery-3.3.1.min.js

    jquery-3.3.1.js和jquery-3.3.1.min.js免费下载哈。jquery-3.3.1.js和jquery-3.3.1.min.js免费下载哈。jquery-3.3.1.js和jquery-3.3.1.min.js免费下载哈。jquery-3.3.1.js和jquery-3.3.1.min.js免费下载哈。jquery-...

    jquery-uijquery-ui-1.7.3.custom.zip

    jquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-ui

    jquery-3.7.0.min.js(jQuery下载)

    jquery-3.7.0.min.js(jQuery下载)jquery-3.7.0.min.js(jQuery下载)jquery-3.7.0.min.js(jQuery下载)jquery-3.7.0.min.js(jQuery下载)jquery-3.7.0.min.js(jQuery下载)jquery-3.7.0.min.js(jQuery下载)...

    jquery插件jquery-ui-1.8.18.custom.min.js及css文件

    jquery插件jquery-ui-1.8.18.custom.min.js

    Jquery智能提示完整全部版本vsdoc.js

    jquery-1.3.2-vsdoc.js jquery-1.8.3.min.js jquery-1.3.2.min.js jquery-1.4.1-vsdoc.js jquery-1.4.1.min.js jquery-1.4.2-vsdoc.js jquery-1.4.2.min.js jquery-1.4.3-vsdoc.js jquery-1.4.3.min.js ...

    jquery-ui-1.8.16

    jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-...

    jquery-ui-1.8.16.custom.min.js/jquery-ui-1.8.16.custom.css

    这里包含jquery-ui-1.8.16.custom.min.js/jquery-ui-1.8.16.custom.css,我费了好长时间找到的,此东西可以配合jQuery UI开发指南一书使用。

    jquery-ui-1.8.2.custom.min.js,jquery-ui-1.8.4.custom.css

    jquery-ui-1.8.2.custom.min.js,jquery-ui-1.8.4.custom.css

    jquery-ui-1.11.2日期控件datepicker

    ${ctx}/plugins/jquery-ui-1.11.2/jquery-ui.css" > ${ctx}/plugins/jquery-ui-1.11.2/external/jquery/jquery.js"> ${ctx}/plugins/jquery-ui-1.11.2/jquery-ui.js"> ${ctx}/plugins/jquery-ui-1.11.2/jquery-ui-...

    jquery-1.6.4-vsdoc.js

    压缩包内包含jquery-1.6.4.js jquery-1.6.4.min.js jquery-1.6.4-vsdoc.js 。 【推荐用法】 1、将jquery-1.6.4-vsdoc.js与jquery-1.6.4.js放在同一目录,然后在vs中添加对jquery-1.6.4.js的引用即可; 2、切记:...

    jQuery UI.Layout参数说明

    jQuery UI.Layout参数 jQuery UI.Layout Plug-in 官方站点:http://layout.jquery-dev.net/ 必须的文件:jquery.js,jquery-ui.js,jquery.layout.js

    jquery-ui-1.8.18.custom

    jquery-ui-1.8.18.custom

    jquery-ui-datepicker中文版

    jquery-ui-日期框扩展成时间框 jquery-ui时间框 基于别人的代码进行修改 jquery-ui-1.8.16.custom.css文件末尾加入以下代码 .ui-timepicker-div .ui-widget-header{ margin-bottom: 8px; } .ui-timepicker-div dl{ ...

    jquery--frame--ziyuan

    jquery--frame--ziyuan jquery--frame--ziyuan jquery--frame--ziyuan jquery--frame--ziyuan

    jquery-easyui-EDT-1.5.2-build1

    jquery-easyui-EDT-1.5.2-build1 jquery-easyui-EDT-1.5.2-build1

    jQuery版本迁移辅助插件jquery-migrate-1.2.1.min.js

    jQuery版本迁移辅助插件,如果您使用的低版本jQuery改为高版本后出现错误,可以试试这个插件。用来检测和恢复在jQuery1.9版本中已删除或已过时的API。jquery-migrate-1.2.1.js,jquery-migrate-1.2.1.min.js

Global site tag (gtag.js) - Google Analytics