ソースを参照

Listing 6.3: $.loadJSON().

Frederic G. MARAND 9 年 前
コミット
c114f16a58
1 ファイル変更5 行追加0 行削除
  1. 5 0
      Chapter 6/06.js

+ 5 - 0
Chapter 6/06.js

@@ -6,4 +6,9 @@ $(document).ready(function () {
     $('#dictionary').load('a.html');
     alert('Loaded');
   });
+
+  $('#letter-b a').click(function (event) {
+    event.preventDefault();
+    $.getJSON('b.json');
+  });
 });