您可以将字段名称的点符号替换为等效的Unicode \uff0E
db.test.insert({"field\uff0ename": "test"}) db.test.find({"field\uff0ename": "test"}).forEach(printjson) { "_id" : ObjectId("5193c053e1cc0fd8a5ea413d"), "field?name" : "test" }
看更多:
http://docs.mongodb.org/manual/faq/developers/#faq-dollar-sign-escaping
http://docs.mongodb.org/manual/core/document/#dot-notation