script
환율
- 관리자 2020.09.18 인기
-
- 6,726
- 0
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script>
$(document).ready(function(){
$.ajax(
{url:"https://www.koreaexim.go.kr/site/program/financial/exchangeJSON?authkey=22VMJ1JCcIFy1mvgvUSn1JCWmRkq3k2A&searchdate=20171215&data=AP01",header:'Content-Type:text/plain; charset=utf-8',
dataType: "json",
success: function (data) {
//받아온 JSON을 테이블에 출력
$.each(data, function (index,entry) {
$('#tablList').append("<tr><td>" + this.cur_nm + "</td><td>" + this.cur_unit + "</td><td>" + this["kftc_deal_bas_r"] + "</td></tr>");
});
},
error: function () { alert("에러발생"); }
});
});
</script>
</head>
<body>
<table id="tablList" border="1"></table>
</body>
</html>
- 이전글audio 제어, 컨트롤2020.09.18
- 다음글글자 타이핑효과2020.09.18
댓글목록
등록된 댓글이 없습니다.