jquery获取当前请求页面URL

$.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("价格保存失败!");
            }
        });

posted on 2012-06-19 15:13  ~~小麦  阅读(871)  评论(0编辑  收藏  举报

导航