举例:向集合user中添加一个用户对象 {name:"Jack",age:20,gender:"man"}db.user.insert({name:"曹操",age:18,gendor:"man"})db.user.insert({name:"刘备",age:30,gendor:"man"})使用use时,如果数据库存在则会进入到相应的数据库,如果不存在则会自动创建。{name:"诸葛亮",age:58,gendor:"man"},{name:"司马懿",age:25,gendor:"man"}