form 异步提交无法获取返回值

提问 未结 3 6070
悬赏:20飞吻
 $edit_dialog.iForm('submit', {
url: API_HOST + '/v1.0.0/account/money',
onSubmit: function () {
return $edit_dialog.iForm('validate');
},
success: function (ret) {
console.log("aaaaa" + ret);
ret = eval('(' + ret + ')');
if (ret.code == 20000) {
$.iMessager.alert('提示信息', ret.msg, 'info', function () {
$edit_dialog.dialog('close');
$('#dg').iDatagrid('reload')
});

} else {
$.iMessager.alert('提示信息', ret.msg, 'error');
}
}
});
回帖
回帖须知