Skip to content

Commit b262e86

Browse files
committed
docs: 📝 文档修改
1 parent df24d20 commit b262e86

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

apps/libs/downloader/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,22 @@
1717

1818
## 📖 使用方式
1919

20-
1. 添加 `// @require https://***/downloader.js` 库引用
20+
1. 添加 `// @require https://**/downloader.js?sha384-*` 库引用
2121
2. 添加 `// @grant GM_download` 下载权限
2222
3. 使用 `downloader` 方法下载资源
2323

2424
```typescript
2525
// ==UserScript==
26-
// ***
27-
// @require https://***/downloader.js?sha384-***
26+
// @require https://**/downloader.js?sha384-*
2827
// @grant GM_download
2928
// ==/UserScript==
3029

3130
(async () => {
3231
'use strict'
33-
// 异步调用
3432
await downloader({
3533
filename: 'index.zip', // 文件名
3634
resources: [ // 资源列表
37-
{ name: 'index.txt', url: location.href },
35+
{ name: 'index.html', url: location.href },
3836
],
3937
concurrency: 10, // 并发数
4038
onProgress(index) { // 下载进度回调

0 commit comments

Comments
 (0)