注册 登录
编程论坛 jQuery论坛

我在验证成功后怎样动态的获取要跳转的页面地址?比如传个参数啊什么的,求大神指点一下

qzx10010 发布于 2018-09-11 19:58, 2535 次点击
$('#butt').click(function(){
                        var temp = false;
                        var pass = $('#pas').val();
                        var qqs = $("#numbers").val();
//                        var qqs = document.getElementById("qq").value;
                        if(isNaN(qqs)) {
                            temp = true;
                        }
                        if(qqs.length < 5 || qqs.length > 11 || temp == true) {
                            $('#warringcode').append().text("请输入正确的qq!").css("color","red");
                        }

                        
                        if(pass.length < 6 || pass.length > 12) {
                            $("#warringpas").append().text("密码只能有12位!").css("color","red");
                        } else {
//                            alert('登录成功!');
                        }

                });
1 回复
#2
icecool2018-10-26 10:26
最简单方法,你在提交验证数据时,同时提交当前页地址,保存一个SESSION,成功后跳到session保存的地址,清空SESSION
1