easyui的弹出浮层(加载中...)的效果。

function _ajaxLoading(msg){
    $("
").css({display:"block",position:"fixed",width:"100%",height:"100%"}).appendTo("body"); $("
").html(msg).appendTo("body").css({display:"block",position:"fixed",left:($(document.body).outerWidth(true) - 190) / 2,bottom:($(window).height() ) / 10}); } function _ajaxLoadEnd(){ $(".datagrid-mask").remove(); $(".datagrid-mask-msg").remove(); }
两个函数,一个弹出,一个关闭。

你可能感兴趣的:(easyui)