students.forEach 报错
var student = require('./student')
var teacher = require('./teacher')
function add(teacherName, students) {
teacher.add(teacherName)
students.forEach(function (item, index) {
student.add(item)
})
}
exports.add = add
var student = require('./student')
var teacher = require('./teacher')
function add(teacherName, students) {
teacher.add(teacherName)
students.forEach(function (item, index) {
student.add(item)
})
}
exports.add = add
2017-05-22
举报