最赞回答 / Linaer000
var index = require('./index'); var klass = [{klass:'三年二班', teacherName:'苍进空', students:['白富美','高富帅']},{klass:'二年二班', teacherName:'苍进空', students:['白富美','高富帅']}]; index.add(klass);可以这么优化一下就完美了。
2018-05-23