$.ajax({
type:"post",
url:"../Common/txtAjax.ashx",
data:{action:"SavePrice",proid:theid,scprice:thesc,b2cprice:theb2c,xjprice:thexj,xbprice:thexb,kaprice:theka,pfprice:thepf},
success:function(data){
if(data==1)
{
alert("价格保存成功!");
location.href=document.URL; //在这里
}
else alert("价格保存失败!");
}
});
转载于:https://www.cnblogs.com/pengbp/archive/2012/06/19/2554820.html