Преглед изворни кода

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');
   });
 });