Skip to content

Commit

Permalink
开发文档全面更新 tableName 说明,补充遗漏的更改
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejiayun committed Jan 7, 2019
1 parent fe721ac commit a8243f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions js-sdk/schema/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

```js
let tableName = 'fruit'
// 通过 `tableID` 实例化一个 `TableObject` 对象,操作该对象即相当于操作对应的数据表
let tableName = 'product'
// 通过 `tableName` 实例化一个 `TableObject` 对象,操作该对象即相当于操作对应的数据表
let Product = new wx.BaaS.TableObject(tableName)
// 本地创建一条空记录
let product = Product.create() // product 为 TableRecord 实例
Expand Down Expand Up @@ -108,7 +108,7 @@ res 结构如下:

```js
// 假设 product 表有一个字段为 product_id ,其中数据的格式形如 '112233'
let Product = new wx.BaaS.TableObject(tableID)
let Product = new wx.BaaS.TableObject(tableName)
var query = new wx.BaaS.Query()

// 查找产品 ID 以 11 开头,以 33 结尾的产品
Expand Down
2 changes: 1 addition & 1 deletion js-sdk/schema/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ let orQuery = wx.BaaS.Query.or(andQuery, query3)

### 获取符合筛选条件的数据总数
```javascript
let Product = new wx.BaaS.TableObject(tableID)
let Product = new wx.BaaS.TableObject(tableName)
let query = new wx.BaaS.Query()

// 设置查询条件
Expand Down

0 comments on commit a8243f4

Please sign in to comment.