Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按照go相关文档操作,浏览器只是列出目录中的文件 #2

Open
kybom opened this issue Aug 26, 2018 · 2 comments
Open

Comments

@kybom
Copy link

kybom commented Aug 26, 2018

https://github.com/golang/go/wiki/WebAssembly
os: windows10
brower: chrome68
浏览器只是列出目录中的文件,并没有允许
image

@chai2010
Copy link
Member

必须要启动web服务,不能直接用浏览器打开本地文件

@chai2010
Copy link
Member

chai2010 commented Aug 26, 2018

看错了,你需要修改html文件,将wasm改为对应的名字。然后打开html页面。
wasm_exec.html 里面的 wasm 名字是 a.out.wasm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants