-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <title>A页面</title> | ||
| </head> | ||
| <body> | ||
| A页面,载入B页面的内容<br /> | ||
| <div id="app"></div> | ||
| </body> | ||
| <script src="//unpkg.com/jquery@2.1.4/dist/jquery.min.js"></script> | ||
| <script> | ||
| $("#app").load("b.html"); | ||
| </script> | ||
| </html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| console.log("AAAAAAAAAAAAAA") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <title>B页面</title> | ||
| </head> | ||
| <body> | ||
| <hr /> | ||
| 这里是B页面 | ||
| </body> | ||
| <script src="b.js"></script> | ||
| </html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| /** | ||
| * 方式1: //@ sourceURL=b.js(源映射) | ||
| * PS:@与sourceURL 之间保留空格 | ||
| * | ||
| * 方式2:debugger | ||
| * 在要调试的地方加上 debugger | ||
| * | ||
| * | ||
| */ | ||
|
|
||
|
|
||
| //@ sourceURL=b.js | ||
|
|
||
| debugger | ||
| console.log(123); | ||
| debugger | ||
| console.log(456); |