V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
bzw875

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

  •  
  •   bzw875 · Sep 26, 2016 · 5608 views
    This topic created in 3502 days ago, the information mentioned may be changed or developed.
    代码看了一遍,看不到怎么像可以运行的 js ,网上搜索了一遍,没有找到方法
    电子书: http://es6.ruanyifeng.com/
    github : https://github.com/ruanyf/es6tutorial/
    8 replies    2016-09-26 16:02:19 +08:00
    zhanglintc
        1
    zhanglintc  
       Sep 26, 2016
    这不就是一本书吗, 要运行什么 js?
    ersic
        2
    ersic  
       Sep 26, 2016   ❤️ 1
    放到服务器环境内,直接访问 index.html 就可以
    bzw875
        3
    bzw875  
    OP
       Sep 26, 2016
    @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  
       Sep 26, 2016   ❤️ 1
    python -m SimpleHTTPServer

    或者直接浏览器打开 index.html
    xinnix
        5
    xinnix  
       Sep 26, 2016
    应该可以输出成 pdf
    Kokororin
        6
    Kokororin  
       Sep 26, 2016
    php -S localhost:3000
    Dirlllee
        7
    Dirlllee  
       Sep 26, 2016 via iPhone
    直接在网页里运行
    bzw875
        8
    bzw875  
    OP
       Sep 26, 2016
    @ersic 感谢已发送
    @ibigbug 感谢已发送
    我 url 写错了,放 apache-tomcat 和 Python 都行,“ http://127.0.0.1:8080/”就行了
    “ http://127.0.0.1:8080/index.html ”就出错了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3182 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 13:43 · PVG 21:43 · LAX 06:43 · JFK 09:43
    ♥ Do have faith in what you're doing.