transBegin() 开启事务 插入记录 > cl.insert({date:99,id:8,a:0}) 回滚事务,插入的记录将被回滚,集合中无记录 > db.transBegin() 插入记录 提交事务,插入的记录将被写入数据库 > db.transCommit()1