每一种状态都可以设置对应的回调函数
成功状态
popup({type:'success',msg:"操作成功",delay:1000,callBack:function(){ console.log('callBack~~~'); }});
失败状态
popup({type:'error',msg:"操作失败",delay:2000,bg:true,clickDomCancel:true});
loading状态
popup({type:'load',msg:"请等待",delay:1500,callBack:function(){ popup({type:"success",msg:"加载成功",delay:1000}); }});
警告状态
popup({type:'tip',msg:"提示信息",delay:null});