##跨域通信demos
- 图像ping
- JSONP
- Comet
- Http Streaming
- Long Polling
- Server-sent Events
- Websocket
- iframe
- document.domain
- URL.hash
- Cross-fragment
- Window.name
- postMessage
##注意:
- 1-5请求都是发送到
localhost:3000
,为了实现跨域,打开页面时地址请使用127.0.0.1:3000
- iframe需要配置hosts
127.0.0.1 www.myapp.com
127.0.0.1 sample.myapp.com
127.0.0.1 www.otherapp.com