欢迎您,  退出
var btn = document.getElementById('btn_login'); var re = document.getElementById('btn_register'); var user = document.getElementById('txt_username'); var password = document.getElementById('txt_password'); btn.onclick = function () { var isValidate = false; if (user.value != "" && password.value != "") { isValidate = true; } else { alert("用户名或密码不能为空!"); } if (isValidate) { //var ajax = Ajax(); //ajax.get('loginUser.aspx?user=' + document.getElementById('txt_username').value + '&password=' + document.getElementById('txt_password').value, function (data) { // var con = document.getElementById('con'); // eval(data); // if (login) { // con.innerHTML = '登录成功,跳转中...'; // location = 'default.aspx'; // 登录成功后指定跳转页面 // } else { // con.innerHTML = '帐号或密码错误!'; // } //}); $.ajax({ url: "/account/loginUser.aspx?user=" + document.getElementById('txt_username').value + "&password=" + document.getElementById('txt_password').value, success: function (text) { if(text=="1") { location.replace(location); } else { alert(text); } } }); } } re.onclick = function () { user.value = ""; password.value = ""; }
第五届江苏科普公益作品
公益作品大赛评审结果公示