项目中用到了询问框,所以简单整理一下避免以后使用忘了再麻烦: $.ncConfirm({ url: ncGlobal.adminRoot + "weixin/user/load.json", method:"GET", alertTitle:"同步微信端数据", content:"同步微信端数据会将当前系统中微信用户数据删除后重新从微信公众平台下载用户数据,请慎重操作,是否立即同步微信端用户?", beforeSend:function(){ $.ncAlert({ closeButtonText: "关闭", autoClose:false, content: "正在努力同步微信端数据,请等待" }); }, callBack:function(xhr){ $("#nc_alert_close").trigger("click"); $.ncAlert({ closeButtonText: "关闭", content: "同步完成", autoClose:true, autoCloseTime: 3, callback: function(){ Nc.go(ncGlobal.adminRoot + "weixin/user"); } }); submiting = false; }, errorCallBack:function(xhr){ $("#nc_alert_close").trigger("click"); $.ncAlert({ closeButtonText: "关闭", autoClose:true, autoCloseTime: 3, content: xhr.message, callback: function(){ Nc.go(ncGlobal.adminRoot + "weixin/user"); } }); submiting = false; } });
JQuery的$.ncConfirm用法
最新推荐文章于 2024-09-13 22:11:00 发布