": "0.2.0",
"description": "A sample Node.js app using Express 4",
"main": "index.js",
"scripts...": {
"start": "node index.js"
},
"dependencies": {
"express": "^4.13.3"
},
"engines":...{
"node": "4.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/heroku.../node-js-sample"
},
"keywords": [
"node",
"heroku",
"express"
],
"author": "Mark...之所以用静态服务器而不是直接在文件中打开 .html 文件的原因是:在文件中打开,页面的协议是 file://,如果该页面会在 JS 中加载一些资源或模拟 aJax 接口,其协议是 http:// ,因为协议不同