Created
March 13, 2019 00:25
-
-
Save beiweiqiang/332a6efcc67cdd6cf25caa2ba9ebf7f9 to your computer and use it in GitHub Desktop.
defer 脚本总是按照指定它们的顺序进行执行
This file contains hidden or 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
| console.log('app2.js: 1 -> -> ', 'apps'); |
This file contains hidden or 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
| console.log('app3.js: 1 -> -> ', 'apps'); |
This file contains hidden or 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
| console.log('app4.js: 1 -> -> ', 'apps'); |
This file contains hidden or 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
| console.log('app5.js: 1 -> -> ', 'apps'); |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| <script defer src="index.js"></script> | |
| <script defer src="app2.js"></script> | |
| <script defer src="app3.js"></script> | |
| <script defer src="app4.js"></script> | |
| <script defer src="app5.js"></script> | |
| </head> | |
| <body> | |
| <div> | |
| 123123 | |
| </div> | |
| </body> | |
| </html> |
This file contains hidden or 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
| console.log('index.js: 1 -> -> ', 'index'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment