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

请问为什么我下载后直接用浏览器打开index.html却样式丢失,页面显示异常? #1

Open
wuweishusheng opened this issue Feb 2, 2018 · 4 comments

Comments

@wuweishusheng
Copy link

No description provided.

@bobiscool
Copy link
Owner

直接打开是不行的。。你需要起一个静态服务 。。。

@wuweishusheng
Copy link
Author

秒回啊,0.0!百度了一下你的话,竟然还不懂,能说的详细点么 0.0

@bobiscool
Copy link
Owner

bobiscool commented Feb 2, 2018

你是程序员吗?😑 静态服务就是 ..http 服务 一种,浏览器不允许 js 直接去获取操作 本地的文件,只允许 js 操作在线上文件,所以需要将你的文件放在服务器上或者自己起一个静态服务让自己电脑成为服务器 静态服务你可以用 anywhere 「node 的」
Appache
或者 nginx

@wuweishusheng
Copy link
Author

php新程序员一枚,面试想做份简历,看中你这个创意很久了,😑,想研究并模仿一份,没想到开头就一脸懵,就被难住了0.0. ,谢谢分享!

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