Html跳转代码

时间:2016-08-21 11:27:51
【文件属性】:

文件名称:Html跳转代码

文件大小:6KB

文件格式:TXT

更新时间:2016-08-21 11:27:51

跳转

function doublechooseclick() { //alert("doublechooseclick"); $.ajax({ type: "POST", dataType: "json", url: "/HttpUrl/UserReg.ashx?UserMail=" + emailTxt, success: function (msg) { // alert(msg.user); var user = msg.user; var balance = msg.balance; // alert(user); /// alert(balance); if (user != "") { location.href = "RegSuccess.html?user=" + user + "&balance=" + balance; //location.href实现客户端页面的跳转 // location.href = "RegSuccess.html"; //location.href实现客户端页面的跳转 } else { alert("注册失败!"); return; } } }); } //function doublechooseclick() { // $.post("/HttpUrl/UserReg.ashx", { id: "1", name: "join" }, function () { location.href = "/User/RegSuccess.html"; }); //} /**********************************************************************************/ //var falg = true; //定义是否通过的标志 //function bt_reg_C() { // location.href = "/User/reg.html "; //} //$(document).ready(function () { // $("#VerifyCode").bind("click", function () { // $("#VerifyCode img").attr("src", "/Httpurl/RandomImage.ashx?time=" + Math.random()); // }); // $("#bt_login").bind("click", function () { // //alert("1"); // login(); // }); //}); //function login() {///登陆 // var falg = ""; // var username = $("#UserName").val(); // var password = $("#PassWord").val(); // var val = $("#Validate").val(); // $.ajax({ // type: "POST", // url: "/HttpUrl/UserReg.ashx?Validate=" + val, // success: function (msg) { // var msg = "ok"; ///测试先写死,到时候进行屏蔽 // if (msg == "ok") { // falg = true; // if (falg) { // $.ajax({ // type: "POST", // url: "/HttpUrl/index.ashx?type=3&uname=" + username + "&pwd=" + password, // success: function (msg) { // if (msg.user == username) { // downdan("ssq", username); ///下单 // } // else { // alert("用户名密码错误!"); // } // } // }); // } // } // else { // alert("验证码不一致!"); // falg = false; // } // } // }); //} ///跳转按钮中的事件 最强护卫 function sure() { var combination = getcombination(); var amount = $("#pt_bs").val() - 0; var posturl = "/order/sure"; var count; var btype = $("input[name='buyType']:checked").val(); var title; //

  • 追号名称:
  • if (btype == 3) { posturl = "/order/autoplay"; count = $("#lx").val(); title = $(".chasing_name :text").val(); if (title == null || title == '') { title = '\u8ffd\u53f7'; } if (count == null || count <= 0) { alert("\u8bf7\u8f93\u5165\u8ffd\u53f7\u7684\u671f\u6570"); return; } } var lotterytype = $("#lotterytype").val(); if ($("#lx_buy").attr("checked") == "checked") { posturl = "/order/autoplay"; } $.ajax({ //一个Ajax过程 type: "post", url: posturl, dataType: 'json', data: { combination: combination, amount: amount, lotterytype: lotterytype, count: count, title: title }, success: function (data) { if (data.success == true) { tdialog("\u6210\u529f ", "\u8d2d\u4e70\u6210\u529f,\u8bf7\u4ed8\u6b3e"); } else if (data.status == 0) { $.ajax({ type: "get", url: "/home/login", data: { isdialog: true }, success: function (data) { if (btype == 1) { var m = "

    \u76f4\u63a5\u8d2d\u4e70

    -

    \u65e0\u9700\u767b\u5f55\u5c31\u53ef\u8d2d\u4e70

    "; tdialog("\u8bf7\u767b\u5f55", m + data); } else if (btype == 3) { tdialog("\u8bf7\u767b\u5f55", data); } } }); } else if (data.status == 2) { tdialog("\u8bf7\u5b8c\u5584\u8eab\u4efd\u4fe1\u606f", "\u70b9\u6b64\u5b8c\u5584\u4fe1\u606f"); } else { tdialog("\u5931\u8d25\u4e86", data.info); } } }); }


    网友评论

    • 不懂,只能说技术不到家!