81,095
社区成员
发帖
与我相关
我的任务
分享
$.ajax({
type: "POST",//方法类型
dataType:"json",
contentType:"text/html;charset=utf8",
url: "updatePassword.do?oldpassword="+oldpassword+"&newpassword="+password1,
/* data:{oldpassword: oldpassword,newpassword: password}, */
function(data){
layer.msg(data.msg, {anim: 6});
}
});
$.ajaxFileUpload({
url:addUrl,
secureuri:false,
fileElementId:['excelFile'],
dialog:d,
dataType:"text/html",
success:function(r, status){
r = $.parseJSON(r.replace(/<.*?>/ig,""));
if (r.success) {
d.dialog('destroy');
$.messager.alert('提示', '添加成功');
}else{
if(r.msg!=undefined)
$.messager.alert('提示', r.msg);
else
toLogin();
}
$('#questionDatagrid').datagrid('reload');
d.dialog('destroy');
},
error:function(data, status, e){
$.messager.alert('提示', '添加失败:'+e)
}
});