Skip to content

Commit 95a7eff

Browse files
committed
Create 数据存储和获取相关接口.md
1 parent d749f43 commit 95a7eff

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

数据存储和获取相关接口.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
**tablet/OS.js中包含如下与数据存储和获取相关的接口**
2+
static **stmt** (json, fcn)
3+
函数功能:获取数据,返回json字符串
4+
5+
static **query** (json, fcn)
6+
函数功能:查询数据,查询数据是否存在
7+
8+
static **cleanassets** (ft, fcn)
9+
函数功能:清楚数据,包括与此数据关联的相关数据
10+
11+
static **getmedia** (file, fcn)
12+
函数功能:获取媒体文件
13+
14+
static **setmedia** (str, ext, fcn)
15+
函数功能:以MD5作为文件名,存储文件
16+
17+
static **setmedianame** (str, name, ext, fcn)
18+
static **remove** (str, fcn)
19+
函数功能:删除某个文件
20+
21+
static **getfile** (str, fcn)
22+
static **setfile** (name, str, fcn)

0 commit comments

Comments
 (0)