Ajax页面跳转

<script type="text/javascript" >
    $(document).ready(function () {
            $(".btnOrder1").click(function () {
                var id = $(this).attr("title");
                       var oper = "check";
                       $.ajax({
                           type: "post",
                           url: "dMenuPage.aspx",
                           data: "&id=" + id ,
                           dataType: "Text",
                           success: function (data) {
                              window. location.href ='dShopCart.aspx';
                           }
                    });
             });
     });

</script>

如果要传递参数则window.location.href ='dShopCart.aspx?id='+id;

posted @ 2016-11-17 22:20  旧爱久居于心  阅读(520)  评论(0编辑  收藏  举报