This example describes the jquery processing page pop-up query data waiting operation. Share to everyone for your reference. The implementation methods are as follows:
$ (document). Ready (function () {
layer.load (0);
Initialize the load
//optional range (0-9) 0 to return the results after the result is closed, 1-9 for the automatic shutdown time (s)
});
Set the style to turn off waiting when the query result set returns
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 ()//Close all load
}
});
Note: Although only call the two methods to achieve the wait effect, but are all cattle encapsulation good, the need for source files, specific needs to my resources to download to use, and then put the appropriate path to the project can be
The final effect is shown in the following illustration:
I hope this article will help you with your jquery programming.