diff --git a/public/docs/ts/latest/guide/server-communication.jade b/public/docs/ts/latest/guide/server-communication.jade index e504ed3f28..2863114788 100644 --- a/public/docs/ts/latest/guide/server-communication.jade +++ b/public/docs/ts/latest/guide/server-communication.jade @@ -3,12 +3,12 @@ block includes - var _Http = 'Http'; // Angular `Http` library name. - var _Angular_Http = 'Angular Http' - var _Angular_http_library = 'Angular HTTP library' - - var _Angular_http_libraryCn = 'Angular HTTP库' + - var _Angular_http_libraryCn = 'Angular HTTP 库' :marked [HTTP](https://tools.ietf.org/html/rfc2616) is the primary protocol for browser/server communication. - [HTTP](https://tools.ietf.org/html/rfc2616)是浏览器和服务器之间通讯的主要协议。 + [HTTP](https://tools.ietf.org/html/rfc2616) 是浏览器和服务器之间通讯的主要协议。 .l-sub-section :marked @@ -22,69 +22,69 @@ block includes [JSONP](https://en.wikipedia.org/wiki/JSONP). A few browsers also support [Fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). - 现代浏览器支持两种基于HTTP的API: - [XMLHttpRequest (XHR)](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest)和 + 现代浏览器支持两种基于 HTTP 的 API: + [XMLHttpRequest (XHR)](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) 和 [JSONP](https://en.wikipedia.org/wiki/JSONP)。少数浏览器还支持 [Fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)。 The !{_Angular_http_library} simplifies application programming with the **XHR** and **JSONP** APIs. This page covers: - !{_Angular_http_libraryCn}简化了**XHR**和**JSONP** API的编程,这就是本章所要讲的。 + !{_Angular_http_libraryCn}简化了 **XHR** 和 **JSONP** API 的编程,这就是本章所要讲的。 - [The Tour of Heroes *HTTP* client demo](#http-client). - - [英雄指南范例的HTTP客户端](#http-client) + [英雄指南的 *HTTP* 客户端示例](#http-client)。 - [Fetch data with http.get](#fetch-data). - - [用http.get获取数据](#fetch-data) + [用 http.get 获取数据](#fetch-data)。 -
  • [RxJS library](#rxjs).
  • + - [RxJS library](#rxjs). -
  • [RxJS库](#rxjs)
  • + [RxJS 库](#rxjs)。 -
  • [Enable RxJS operators](#enable-rxjs-operators).
  • + - [Enable RxJS operators](#enable-rxjs-operators). -
  • [启用RxJS操作符](#enable-rxjs-operators)
  • + [启用 RxJS 操作符](#enable-rxjs-operators)。 - [Process the response object](#extract-data). - - [处理响应对象](#extract-data) + - [处理响应对象](#extract-data)。 - [Always handle errors](#error-handling). - - [总是处理错误](#error-handling) + - [总是处理错误](#error-handling)。 - [Send data to the server](#update). - - [把数据发送到服务器](#update) + - [把数据发送到服务器](#update)。 -
  • [Fall back to promises](#promises).
  • + - [Fall back to promises](#promises). -
  • [使用承诺(Promise)来取代可观察对象(Observable)](#promises)
  • + [使用承诺 (Promise) 来取代可观察对象 (Observable)](#promises)。 - [Cross-Origin Requests: Wikipedia example](#cors). - - [跨域请求:Wikipedia例子](#cors) + - [跨域请求:Wikipedia 示例](#cors)。 -