一、查詢價格大於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)})