阮一峰的《ECMAScript 6 入门》网页源代码从 github 克隆下来之后怎么运行

2016 年 9 月 26 日
 bzw875
代码看了一遍,看不到怎么像可以运行的 js ,网上搜索了一遍,没有找到方法
电子书: http://es6.ruanyifeng.com/
github : https://github.com/ruanyf/es6tutorial/
5490 次点击
所在节点    JavaScript
8 条回复
zhanglintc
2016 年 9 月 26 日
这不就是一本书吗, 要运行什么 js?
ersic
2016 年 9 月 26 日
放到服务器环境内,直接访问 index.html 就可以
bzw875
2016 年 9 月 26 日
@zhanglintc 打开源码的 index.html 页面提示错误

@ersic apache-tomcat 的 server.xml 加了一句<Context docBase="C:\apache-tomcat-6.0.35\webapps"
path="" debug="0" reloadable="true"/>只可以访问 index.html ,别的也不行
ibigbug
2016 年 9 月 26 日
python -m SimpleHTTPServer

或者直接浏览器打开 index.html
xinnix
2016 年 9 月 26 日
应该可以输出成 pdf
Kokororin
2016 年 9 月 26 日
php -S localhost:3000
Dirlllee
2016 年 9 月 26 日
直接在网页里运行
bzw875
2016 年 9 月 26 日
@ersic 感谢已发送
@ibigbug 感谢已发送
我 url 写错了,放 apache-tomcat 和 Python 都行,“ http://127.0.0.1:8080/”就行了
“ http://127.0.0.1:8080/index.html ”就出错了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/308980

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX