always: function(e, data) { art_dialog.loading.end(); if (data.result) { (typeof data.result === "string") && (data.result = JSON.parse(data.result)); if (data.result.code == 0) { art_dialog.error('导入成功', data.result.msg, cb); } else { art_dialog.error('导入失败', data.result.msg, fcb); } } }
$.get(urls.delUrl + "?id=" + id, function(res) { if (res.code == 0) { _grid.load(); } else { art_dialog.error('错误', res.msg); } }, 'json');
$.post(urls.addUrl, data, function(res) { if (res.code == 0) { callback(res); } else { art_dialog.error('错误', res.msg); } }, 'json');
$.get(urls.detailUrl + "?id=" + id, function(res) { if (res.code == 0) { showPop(res.data); } else { art_dialog.error('错误', res.msg); } });