我尝试了在四舍五入时可用的不同解决办法,但无法解决这一问题。
我的法典
var mongoose = require( mongoose );
var schema = new mongoose.Schema({
name:{
type:String,
required:true
},
email:{
type:String,
required:true,
lowercase:true
}
});
mongoose.connect( mongodb://localhost:27017/test );
//parameters are model name,schema,collection name
var Emp = mongoose.model( Emp , schema , users );