日期:2014-05-16 浏览次数:20393 次
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script type="text/javascript">
$(document).ready(function () {
function loginin() {
var name = $('#txt').val();
var passwd = $('#passwd').val();
$.ajax({
type: 'post',
url: 'Login.aspx',
dataType: 'json',
data: 'username=' + name + '&userpasswd=' + passwd,
success: function () { },
error: function () { alert("error"); }
})
}
});
</script>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
帐户<input type="text" id="txt" name="txt" /><br />
密码<input type="text" id="passwd" name="passwd" />
<input type="submit" id="resu" />
</div>
</form>
</body>
</html>