mongodb根据字符长度作为条件查询时间:2023-03-09 18:21:32 { $where:"this.XXX.length==2" } 用$where条件查询,等号要用==。虽说$where查询可能效率不是很好,这只是我能想到的,有更好的方法欢迎指教