浏览代码

Listing 6.7: fetching and evaluating JS with $.getScript().

Frederic G. MARAND 9 年之前
父节点
当前提交
7c9b9da70c
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Chapter 6/06.js

+ 6 - 0
Chapter 6/06.js

@@ -32,4 +32,10 @@ $(document).ready(function () {
       $('#dictionary').html(html);
       $('#dictionary').html(html);
     });
     });
   });
   });
+
+  $('#letter-c a').click(function (event) {
+    event.preventDefault();
+    $.getScript('c.js');
+  });
+
 });
 });