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"> | |
<script src="https://unpkg.com/typescript@latest/lib/typescriptServices.js"></script> | |
<script src="https://unpkg.com/apprun"></script> | |
<script src="my-tsc.js" defer></script> | |
</head> | |
<body> |
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
const delay = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); | |
const main = async () => { | |
console.log("Hello"); | |
for (let i = 0; i < 3; i++) { | |
await delay(500); | |
console.log("."); | |
} | |
console.log("World!"); | |
} |
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> | |
<head> | |
<title>网页标题</title> | |
</head> | |
<body> | |
网页内容 | |
</body> | |
</html> |