最后加学校的怎么写?这样为什么不行
var klass = require('./klass')
exports.add = function(klasses){
klasses.forEach(function(item,index){
var _klass = item
var teacherName = item.teacherName
var students = item.students
})
klass.add(teacherName,students)
}
exports.add = add
var klass2 = require('./index')
klass2.add({'Scott',['白富美','高富帅']},{'Smith',['李二狗','许三多']})