Skip to content

Commit 1f1aeac

Browse files
author
linhe
committed
feat(docs): 添加提交校验
1 parent bc07cfc commit 1f1aeac

7 files changed

Lines changed: 12831 additions & 14 deletions

File tree

docs/_sidebar.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
- [快速开始](quickstart.md)
44
- utils
5-
- [common](utils.md)
5+
- [Utils](utils.md)
66
- [Date](date.md)
77
- [Cookie](cookie.md)
88
- [Layout](layout.md)
99
- [CopyUtils](copy.md)
10-
- [**indexedDB**](indexedDB.md)
11-
- [**LocalDB**](LocalDB.md)
10+
- [**indexedDB**](indexeddb.md)
11+
- [**LocalDB**](localdb.md)
1212
- [更新日志](changelog.md)

docs/indexedDb.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
## 基本概念
1+
# indexedDb
2+
````js
3+
import { LocalIndexedDB } from 'dt-utils'
4+
````
5+
### 基本概念
26
IndexedDB是实现数据持久存储在用户浏览器中的方法。因为它使您可以创建具有丰富查询功能的Web应用程序,而不管网络是否可用,所以这些应用程序可以联机和脱机运行。LocalIndexedDB对于存储大量数据的应用程序(例如,借阅库中的DVD目录)和不需要持久的Internet连接即可工作的应用程序(例如,邮件客户端,任务列表和记事本)
37

4-
## 基本模式
8+
### 基本模式
59
> LocalIndexedDB方法实现的基本模式分为5点
610
+ 打开一个数据库。
711
+ 在数据库中创建一个对象存储。
812
+ 启动一个事务并请求执行一些数据库操作,例如添加或检索数据。
913
+ 通过侦听正确的DOM事件来等待操作完成。
1014
+ 对结果做一些事情(可以在请求对象上找到)。
11-
````
12-
import { LocalIndexedDB } from 'dt-utils'
13-
````
1415

1516
## open
1617
该方法实现打开一个数据库,返回一个promise对象

docs/localDB.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# localDb
22
导入
33
````js
4-
import { LocalD } form 'dt-utils';
4+
import { LocalDB } form 'dt-utils';
55
````
66
功能
77

0 commit comments

Comments
 (0)