| 客户端 | Android | iOS |
|---|---|---|
| 支持说明 | 支持 | 支持 |
import { SqlitePlus } from "@yl/super-jssdk";
SqlitePlus.dropTable(optional);
| 参数 | 类型 | 必填 | 作用 |
|---|---|---|---|
| optional | Object | 是 | 必填参数 |
optional
| 参数 | 类型 | 必填 | 作用 |
|---|---|---|---|
| tableName | string | 是 | 表名 |
| dbName | string | 否 | 数据库名 |
| 参数 | 类型 | 作用 |
|---|---|---|
| resolve | Function | 成功回调 |
| reject(err) | Function | 失败回调,err为详细错误信息,是一个json对象,例如:{"errCode":-1,"errMsg":"出错啦"} |
SqlitePlus.dropTable({tableName: 'user'}})
.then((res) => {
console.log("success", res);
})
.catch((err) => {
console.log("fail", err);
});