瀏覽代碼

Listing 6.23: full documents need to be parsed.

Frederic G. MARAND 9 年之前
父節點
當前提交
2ec8544529
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Chapter 6/06.js

+ 5 - 0
Chapter 6/06.js

@@ -131,6 +131,11 @@ $(document).ready(function () {
     });
     });
   });
   });
 
 
+  $('#letter-h a').click(function (event) {
+    event.preventDefault();
+    $('#dictionary').load('h.html');
+  });
+
   var $loading = $('<div id="loading">Loading...</div>')
   var $loading = $('<div id="loading">Loading...</div>')
     .insertBefore('#dictionary');
     .insertBefore('#dictionary');