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

跑了一下demo,打不开啊 #1

Open
ilaotan opened this issue Apr 4, 2018 · 1 comment
Open

跑了一下demo,打不开啊 #1

ilaotan opened this issue Apr 4, 2018 · 1 comment

Comments

@ilaotan
Copy link

ilaotan commented Apr 4, 2018

我看介绍里说不需要依赖后端服务.也就是用浏览器打开examples下index.html就行呗.
然后控制台提示 sidebar.js:41 XMLHttpRequest cannot load file:///E:/svnRepository/githubPub/markdown-viewer-master/examples/index.ht…%AE%A1%E7%90%86/%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C/%E6%B3%A8%E5%86%8C.md. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

请教下解决办法

@xuess
Copy link

xuess commented Apr 8, 2018

@ilaotan 应该需要在web容器打开,用下载个 live-server, npm i -g live-server,启动一下,再试试。

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