Classes
| Global | Description |
|---|---|
| ResourceHandler |
ResourceHandler
Kind: global class
new ResourceHandler()
处理资源加载的静态类。
The static class that handles resource loading.
.createLoader(url, retryMethod, resignMethod, retryInterval) ⇒ function
创建一个处理资源加载重试的加载器函数。
Creates a loader function that handles retries for resource loading.
Kind: static function
Returns: function - 加载器函数 The loader function
| Param | Type | Description |
|---|---|---|
| url | String | 资源的 URL The URL of the resource |
| retryMethod | function | 用于重试的方法 The method to call for retry |
| resignMethod | function | 放弃时调用的方法 The method to call when giving up |
| retryInterval | Array | 重试间隔数组(毫秒) Array of retry intervals in milliseconds |
.exists() ⇒ Boolean
检查是否存在任何重加载器。
Checks whether any reloaders exist.
Kind: static function
Returns: Boolean - 如果重加载器存在则返回 true True if reloaders exist
.retry()
重试所有失败的资源加载操作。
Retries all failed resource loading operations.
Kind: static function
贡献者
暂无相关贡献者
页面历史
暂无最近变更历史