首页 > TAG信息列表 > pjtmp

Mongodb-Robo 3T使用js函数遍历集合+分割数组+拼接字段+修改对象

db.getCollection("t_ythgk_yjxxfkpz").find({"fkmc": {"$regex":","}}). forEach( function(item) { var tmp = []; var pjtmp = ""; tmp = item.fkmc.split(","); for(var k in tmp){ var fhmc = db.getCollec