-
使用
npm install
或者yarn install
安装依赖 -
node server_a.js
启动服务器A,node server_b.js
启动服务器b
跨域基本表现:http://localhost:3000/basic-phenomenon
Embed use img:http://localhost:3000/img-use Embed use link:http://localhost:3000/link-use
JSONP Run: http://localhost:3000/json-run JSONP Call: http://localhost:3000/json-call JSONP Define: http://localhost:3000/json-define