{% load static i18n %} <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
<title>Title</title> </head> <body>
<head>
<meta charset="UTF-8"> <title>JQuery Intro</title>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script>
function test2() { console.log( '시작' );
$.get("http://t2.amoisoo.net/sample/json/json_response/", { page: "cat", name: "dogs", age: 55, }, // 서버에 전송할 데이타. function(data, status) { $("#django").html( data['time'] ); // 리턴된 값을 얻기. $("#count").html( data['aaa'] ); // 리턴된 값을 얻기. $("#note").html( data['bbb'] ); // 리턴된 값을 얻기. } ); }
</script>
</head>
<body>
<p id="django" >타이틀</p> <p id="count" ></p> <p id="note" ></p>
<br/><br/><a href="javascript:test2()" >test BBB</a>
</body>
</html> |