This commit is contained in:
Zhicheng Wang 2016-09-18 10:02:02 +08:00
parent 3845d73234
commit c648a4dd60
1 changed files with 2 additions and 2 deletions

View File

@ -61,12 +61,12 @@ code-example(format='')
The [Title](../api/platform-browser/index/Title-class.html) service is a simple class that provides an API
for getting and setting the current HTML document title:
幸运的是Angular 2在*浏览器平台*的包中,提供了一个`Title`服务,弥补了这个差别
幸运的是Angular 2在*浏览器平台*的包中,提供了一个`Title`服务,弥补了这种差异
[Title](../api/platform/browser/Title-class.html)服务是一个简单的类提供了一个API用来获取和设置当前HTML文档的标题。
* `getTitle() : string` — Gets the title of the current HTML document.
*`getTitle(): string` —— 获取当前HTML文档的标题。
* `getTitle(): string` —— 获取当前HTML文档的标题。
* `setTitle( newTitle : string )` — Sets the title of the current HTML document.