質問編集履歴
3
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,6 +14,8 @@
|
|
14
14
|
<body class="nav-sm">
|
15
15
|
<div id="main_contents">
|
16
16
|
</div>
|
17
|
+
|
18
|
+
<script type="text/javascript" src="static/vendorsjs/jquery.min.js"></script>
|
17
19
|
<script>
|
18
20
|
$('#main_contents').load("contents.html");
|
19
21
|
</script>
|
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,10 +10,7 @@
|
|
10
10
|
|
11
11
|
**main.html
|
12
12
|
<!DOCTYPE html>
|
13
|
-
<!--<html manifest="manifest.appcache" lang="ja">-->
|
14
13
|
<html lang="ja">
|
15
|
-
{include file='header.html'}
|
16
|
-
|
17
14
|
<body class="nav-sm">
|
18
15
|
<div id="main_contents">
|
19
16
|
</div>
|
1
加筆
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,4 +5,34 @@
|
|
5
5
|
|
6
6
|
動的に読み込んだjavascriptファイルをデベロッパーツールでデバッグできる方法はないでしょうか。
|
7
7
|
|
8
|
+
非常に短いですがコード記載いたします。
|
9
|
+
```html
|
10
|
+
|
11
|
+
**main.html
|
12
|
+
<!DOCTYPE html>
|
13
|
+
<!--<html manifest="manifest.appcache" lang="ja">-->
|
14
|
+
<html lang="ja">
|
15
|
+
{include file='header.html'}
|
16
|
+
|
17
|
+
<body class="nav-sm">
|
18
|
+
<div id="main_contents">
|
19
|
+
</div>
|
20
|
+
<script>
|
21
|
+
$('#main_contents').load("contents.html");
|
22
|
+
</script>
|
23
|
+
</body>
|
24
|
+
</html>
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
**contents.html
|
29
|
+
<div class="">
|
30
|
+
<div>
|
31
|
+
<h1>title</h1>
|
32
|
+
<div>contents</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<script type="text/javascript" src="js/custom.js"></script>
|
36
|
+
```
|
37
|
+
|
8
38
|
よろしくお願いいたします。
|