mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
26 lines
612 B
HTML
26 lines
612 B
HTML
<div class="plain"></div>
|
|
<div class="base64"></div>
|
|
<div class="comma"></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)
|
|
|
|
import { comma } from 'comma/foo?number=1,2,3'
|
|
text('.comma', comma)
|
|
|
|
function text(el, text) {
|
|
document.querySelector(el).textContent = text
|
|
}
|
|
</script>
|
|
|
|
<script type="module" src="./main.js"></script>
|
|
|
|
<div id="sqdqs"></div>
|
|
<div id="sqsdqs"></div>
|
|
<div id="dqsqs"></div>
|
|
<div id="dqssqs"></div>
|