使用node.js构建一个简单的本地服务器,用于学习 AJAX 发送请求及响应的过程
首先要安装一个 node 插件,如下:
yarn global add node-dev
# 或
npm i -g node-dev
作用:node-dev 可以自动重启 node 服务器,这样每次修改 node 文件都不用手动重启了
运行服务器
node-dev server.js 8888
在浏览器打开
http://localhost:8888/index.html
使用node.js构建一个简单的本地服务器,用于学习 AJAX 发送请求及响应的过程
首先要安装一个 node 插件,如下:
yarn global add node-dev
# 或
npm i -g node-dev
作用:node-dev 可以自动重启 node 服务器,这样每次修改 node 文件都不用手动重启了
运行服务器
node-dev server.js 8888
在浏览器打开
http://localhost:8888/index.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.