jQuery简单实现提交数据出现loading进度条的方法

本文实例讲述了jQuery简单实现提交数据出现loading进度条的方法。分享给大家供大家参考,具体如下:

html部分代码如下,复制然后引入类库即可使用 <html> <head>

<style type=\

 #bg{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.2; opacity:.2; filter: alpha(opacity=70);}  .loading{display: none; position: absolute; top: 50%; left: 50%; z-index:1002; }  </style> </head> <body>

  <div id=\

  <input type=\   <div class=\ </body> </html>

jQuery部分代码如下:

<script src=\type=\自己下载类库-->

<script type=\ $(function(){

  $(\     $(\     $.ajax({

      async:false,       url:\       type:\       data:{},

      success:function(mes){

        $(\       }     })   }) })

</script> php代码:

for($i=0;$i<10000000;$i++){ }

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

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4