This commit is contained in:
parent
3845d73234
commit
c648a4dd60
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue