提交 e5f64da8 编写于 作者: d-u-a's avatar d-u-a

docs: unicloud-db 增加where多条件js拼接示例

上级 b26e6590
......@@ -168,7 +168,15 @@ where中指定要查询的条件。比如只查询某个字段的值符合一定
}
onLoad() {
this.sWhere = "id=='" + this.tempstr + "'"
},
// 多条件示例
// id = this.tempstr 且 create_time > 1613960340000
// this.sWhere = "id=='" + this.tempstr + "' && create_time > 1613960340000"
// id = this.tempstr 或 name != null
// this.sWhere = "id=='" + this.tempstr + "' || name != null"
}
}
</script>
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册