新手问题 关于字符串转换类型的问题

datty258 · September 25, 2013 · Last by datty258 replied at September 25, 2013 · 1889 hits

比如说 把 _id : "51f9d9b831d65584ab000116"怎么转换为_id : ObjectId("51f9d9b831d65584ab000116") 求指导

Moped::BSON::ObjectId.from_string('51f9d9b831d65584ab000116')

You need to Sign in before reply, if you don't have an account, please Sign up first.