-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
31 lines (31 loc) · 1.03 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script>
$(function(){
$.ajax(
{
type:'get',
url : config.sourceUrl + 'test.php',
data:{loginuser:"lee",loginpass:123},
dataType : 'jsonp',
jsonp:"jsoncallback",
success : function(msg) {
alert("用户名:"+ msg.user +" 密码:"+ msg.pass);
},
error : function(msg) {
alert('fail');
}
}
);
})
</script>
</head>
<body>
<div>TODO write content</div>
</body>
</html>