日期:2014-05-16  浏览次数:20388 次

JS页面跳转
 if ($("#pro").attr("checked")) {
              $.ajax(
          {
              type: "get",
              url: "../DB.ashx",
              data: { "name": id, "pwd1": pwd },
              datatype: "text",
              success: function (data) {
                  if (data == "yes") {
                      $.cookie("NetShop_userid", id, { expires: 15, path: '/' });
                      alert($.cookie("NetShop_userid"));
                      window.location.herf = "../Main.aspx"; //这个不能跳转

                  }
                  if (data == "no")
                      alert("用户或者密码不对!");
              },
              error: function () {
                  alert("error");
              }
          });

//页面地址应该没有错 没有反映  怎么回事

------解决方案--------------------
location.herf --->href
------解决方案--------------------
引用:
location.herf --->href



+1