|
楼主 |
发表于 2015-2-4 15:38:34
|
显示全部楼层
function updatepwd(){
var username=document.getElementById('username').value;
var o_pwd=document.getElementById('pwd').value;
var pwd=document.getElementById('newpwd').value;
var checkpwd=document.getElementById('checkpwd').value;
$.ajax({
type:"OST",
url:"http://www.fishweb.com/code/shop_admin/checkpwd",
dataType:"json",
data:{"username":username,"old_pwd"_pwd,"newpwd":pwd,"checkpwd":checkpwd},
success:function(data){
if(data.status == '1'){
alert('修改成功!');
return true;
}else{
alert('修改失败!');
}
}
});
}
后台数据修改了,但是前台没用alert弹框是什么情况
|
|