在回调函数里面处理
$.post(
url,{method:"regist",userName:$nameEle.val(),email:$emailEle.val(),password:$passwordEle.val()},
function(data) {
//alert(data);
//注册成功页面跳转,
window.location.href ="../client/login.html";
}
);
带参数的跳转方式:
$.post(
url,
{method:"regist",
function(data) {
//alert(data);
//注册成功页面跳转,
window.location.href ="../yiliaoqixie/login.html?name="+$nameEle.val();
}
);
另外一种写法:
<ahref=
"javascript:dpUpdate('10086')"
>更新</a>
function
doUpdate(relid){
}