Home > Web Front-end > JS Tutorial > jquery processing page pop-up layer query data waiting operation example_jquery

jquery processing page pop-up layer query data waiting operation example_jquery

WBOY
Release: 2016-05-16 16:07:34
Original
1065 people have browsed it

The example in this article describes the jquery processing page pop-up layer query data waiting operation. Share it with everyone for your reference. The specific implementation method is as follows:

$(document).ready(function(){ 
  layer.load(0);
//初始化加载
//可选范围(0-9)0表示等返回结果后关闭,1-9表示自动关闭时间(s) 
});
Copy after login

When the query result set is returned, set the style to close the waiting

function init_page_pro(sdate, pro) {
$.post("detail.key", {
  'pro' : pro,
  'sdate' : sdate
}, function(result, resultState) {
  if (resultState == "success") {
 var resultJson = eval(result);
 //alert(result);
 layer.closeAll()//关闭所有加载
  }
});
}
Copy after login

Note: Although the waiting effect can be achieved by calling only these two methods, they are all packaged by experts and require source files. Specifically, you need to download them from my resources to use them, and then put them in the corresponding project folder. Just follow the path

The final effect is as shown below:

I hope this article will be helpful to everyone’s jQuery programming.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template