V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
bzw875
V2EX  ›  JavaScript

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

  •  
  •   bzw875 · 2016-09-26 11:13:21 +08:00 · 4802 次点击
    这是一个创建于 2762 天前的主题,其中的信息可能已经有所发展或是发生改变。
    代码看了一遍,看不到怎么像可以运行的 js ,网上搜索了一遍,没有找到方法
    电子书: http://es6.ruanyifeng.com/
    github : https://github.com/ruanyf/es6tutorial/
    8 条回复    2016-09-26 16:02:19 +08:00
    zhanglintc
        1
    zhanglintc  
       2016-09-26 11:22:24 +08:00
    这不就是一本书吗, 要运行什么 js?
    ersic
        2
    ersic  
       2016-09-26 11:22:29 +08:00   ❤️ 1
    放到服务器环境内,直接访问 index.html 就可以
    bzw875
        3
    bzw875  
    OP
       2016-09-26 11:53:57 +08:00
    @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
        4
    ibigbug  
       2016-09-26 12:16:19 +08:00   ❤️ 1
    python -m SimpleHTTPServer

    或者直接浏览器打开 index.html
    xinnix
        5
    xinnix  
       2016-09-26 13:16:00 +08:00
    应该可以输出成 pdf
    Kokororin
        6
    Kokororin  
       2016-09-26 14:01:53 +08:00
    php -S localhost:3000
    Dirlllee
        7
    Dirlllee  
       2016-09-26 14:47:39 +08:00 via iPhone
    直接在网页里运行
    bzw875
        8
    bzw875  
    OP
       2016-09-26 16:02:19 +08:00
    @ersic 感谢已发送
    @ibigbug 感谢已发送
    我 url 写错了,放 apache-tomcat 和 Python 都行,“ http://127.0.0.1:8080/”就行了
    “ http://127.0.0.1:8080/index.html ”就出错了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   951 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:27 · PVG 06:27 · LAX 15:27 · JFK 18:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.