You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
832 B
29 lines
832 B
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>用户登录</title>
|
|
<script src="jquery.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<input name="username" value="用户名" type="text">
|
|
<input name="username" value="密码" type="password">
|
|
<input name="submit" type="submit" value="登录">
|
|
</div>
|
|
<script>
|
|
$.ajax({
|
|
dataType: "jsonp", //指定服务器返回的数据类型
|
|
url: 'http://kpsso.kpedu.com/ajaxLogin?targetService=http://kpty.kpedu.com/dsideal_yy/html/ypt/getLoginInfo.jsp&callback=loginFormState&userName=cuishuying&password=123456789',
|
|
jsonpCallback:'loginFormState',
|
|
success: function (data) {
|
|
//alert(data.isLogin)
|
|
var result = JSON.stringify(data); //json对象转成字符串
|
|
//alert(result);
|
|
}
|
|
}
|
|
);
|
|
</script>
|
|
</body>
|
|
</html>
|