jquery ajax


"> 05-02_jquery-ajax

jquery ajax


"> 05-02_jquery-ajax

jquery ajax


">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>05-02_jquery-ajax</title>
<script src="<https://code.jquery.com/jquery-3.7.1.js>"></script>
<style type="text/css">
div {
	width: 300px;
	height: 100px;
	border: 1px solid gray;
}
</style>
</head>
<body>
	<h1>jquery ajax</h1>
	<br/>
	<div id="test"></div>
	<button>Get Data</button>
	<!-- javascript -->
	<script type="text/javascript">
		$(document).ready(function(){
			$("button").click(function(){
				$("#test").load("testfile.txt"); // json 속성 : 키 값
			});
		});
	</script>

</body>
</html>