一、查詢價格大于10的商品
1.wxml檔案
2.js檔案
where條件語句:.where({price:db.command.gt(10)})
3.查詢結果
二、查詢價格大于等于10的商品
js檔案,where條件語句:.where({price:db.command.gte(10)})
三、查詢價格小于10的商品
js檔案,where條件語句:.where({price:db.command.lt(10)})
四、查詢價格小于等于10的商品
js檔案,where條件語句:.where({price:db.command.lte(10)})
五、查詢價格等于10的商品
js檔案,where條件語句:.where({price:db.command.eq(10)})
六、查詢價格大于5小于10的商品
js檔案,where條件語句:.where({price:monica.gt(5)&&monica.lt(10)})