fix: 补充翻译

This commit is contained in:
Zhicheng WANG 2019-01-04 17:33:34 +08:00
parent 5a4a7496a4
commit 65c7a3ed99
1 changed files with 20 additions and 2 deletions

View File

@ -308,16 +308,34 @@ For example, the string `3d12h` will cache content for up to three and a half da
This duration string specifies the network timeout. The network timeout is how long the Angular service worker will wait for the network to respond before using a cached response, if configured to do so. `timeout` is a duration string, using the following unit suffixes: This duration string specifies the network timeout. The network timeout is how long the Angular service worker will wait for the network to respond before using a cached response, if configured to do so. `timeout` is a duration string, using the following unit suffixes:
这个表示持续时间的字符串用于指定网络超时时间。
如果配置了它Angular Service Worker 在开始使用缓存之前就会先等待网络给出响应,这个等待时间就是网络超时时间。
`timeout` 是一个表示持续时间的字符串,使用下列后缀单位:
* `d`: days * `d`: days
`d`:天
* `h`: hours * `h`: hours
`h`:小时
* `m`: minutes * `m`: minutes
`m`:分钟
* `s`: seconds * `s`: seconds
`s`:秒
* `u`: milliseconds * `u`: milliseconds
`u`:毫秒
For example, the string `5s30u` will translate to five seconds and 30 milliseconds of network timeout. For example, the string `5s30u` will translate to five seconds and 30 milliseconds of network timeout.
这个表示持续时间的字符串用于指定网络超时时间。 比如,字符串 `5s30u` 将会被翻译成 5 秒零 30 毫秒的网络超时。
如果配置了它Angular Service Worker 在开始使用缓存之前就会先等待网络给出响应,这个等待时间就是网络超时时间。
#### `strategy` #### `strategy`