-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (37 loc) · 1.11 KB
/
index.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
32
33
34
35
36
37
38
39
<html>
<head>
<title>iou</title>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
</head>
<body>
<script>
// $.get( "http://iou.azurewebsites.net/api/values", function( data ) {
// $( ".result" ).html( data );
// // alert( "Load was performed." );
// console.log(data);
// });
$.getJSON( "http://iou.azurewebsites.net/api/values", function( data ) {
// var items = [];
// $.each( data, function( key, val ) {
// items.push( "<li id='" + key + "'>" + val + "</li>" );
// });
// $( "<ul/>", {
// "class": "my-new-list",
// html: items.join( "" )
// }).appendTo( "body" );
// console.log(data);
});
$.ajax({
type: "GET",
url: "http://iou.azurewebsites.net/api/values",//Address is valid
// contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (r) {
// alert("WIN");
},
error: function (msg) { console.log("ERROR"); }
});
</script>
</body>
</html>