Home > Article > Web Front-end > jquery processing page pop-up layer query data waiting operation example_jquery
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) });
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()//关闭所有加载 } }); }
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.