-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (33 loc) · 857 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Yun</title>
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script>
// $.ajax({
// url: "http://10.208.7.10/arduino/analog/2",
// dataType: 'jsonp'
// }).done(function(data) {
// $( 'body' ).append(data);//hjghjkvhjlgulgyil
// });
setInterval(function(){
myFunction();
}, 3000);
function myFunction() {
//$( '#data' ).append("<p>Test</p>");
$.ajax({
url: "http://10.208.7.10/arduino/analog/2",
dataType: 'jsonp'
}).done(function(data) {
console.log("data", data);
$( 'body' ).empty().append(data);
});
//alert("Hello");
}
</script>
</head>
<body>
<p id="data">
</p>
</body>
</html>