mirror of
https://github.com/hanzoai/quickjs-emscripten.git
synced 2026-10-30 19:37:29 +00:00
19 lines
479 B
HTML
19 lines
479 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>ES Module with esm.sh</title>
|
|
</head>
|
|
<body>
|
|
Open your console
|
|
</body>
|
|
|
|
<!-- Import from a ES Module CDN -->
|
|
<script type="module">
|
|
import { getQuickJS } from "https://esm.sh/[email protected]"
|
|
const QuickJS = await getQuickJS()
|
|
console.log(QuickJS.evalCode("1+1"))
|
|
</script>
|
|
</html>
|