فهرست منبع

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