init
This commit is contained in:
13
www/test.html
Normal file
13
www/test.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<script type="module">
|
||||
import init from "../pkg/rust_as.js";
|
||||
let wasm = await init("../pkg/rust_as_bg.wasm");
|
||||
|
||||
console.log(wasm);
|
||||
wasm.greet();
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user