소스 검색

Listing 6.2: demonstrate that load() is asynchronous.

Frederic G. MARAND 9 년 전
부모
커밋
61c2aa5596
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Chapter 6/06.js

+ 2 - 1
Chapter 6/06.js

@@ -3,6 +3,7 @@ $(document).ready(function () {
 
   $('#letter-a a').click(function (event) {
     event.preventDefault();
-    $('#dictionary').load('a.html');  
+    $('#dictionary').load('a.html');
+    alert('Loaded');
   });
 });