mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
15 lines
368 B
HTML
15 lines
368 B
HTML
<div class="plain"></div>
|
|
<div class="base64"></div>
|
|
|
|
<script type="module">
|
|
import msg from "data:text/javascript, export default 'hi'"
|
|
text('.plain', msg)
|
|
|
|
import base64Msg from 'data:text/javascript;base64, ZXhwb3J0IGRlZmF1bHQgJ2hpJw=='
|
|
text('.base64', base64Msg)
|
|
|
|
function text(el, text) {
|
|
document.querySelector(el).textContent = text
|
|
}
|
|
</script>
|