Angularjs 使用平均堆栈将复选框中的数据保存到mongoose中

Angularjs 使用平均堆栈将复选框中的数据保存到mongoose中,angularjs,node.js,checkbox,mongoose,mean-stack,Angularjs,Node.js,Checkbox,Mongoose,Mean Stack,我开发了这些行来将选中的数据从复选框保存到html文件中的mongoose中 <label ng-repeat="role in roles"> <input type="checkbox" checklist-model="user.roles" checklist-value="role.id"> {{role.text}} </label> 在app.js中 var langage1= req.body.langage; console

我开发了这些行来将选中的数据从复选框保存到html文件中的mongoose中

 <label ng-repeat="role in roles">
   <input type="checkbox" checklist-model="user.roles" checklist-value="role.id"> {{role.text}}
    </label>
在app.js中

var langage1= req.body.langage;
console.log (langage1);

当我运行程序时,我在控制台中有这样一条消息:角色:[1,2,3,4]当我想要选定的标签时

此拼图缺少太多的部分,代码很长,包含许多其他部分,这就是为什么我只发布了重要的内容,你发布的内容不足以理解正在发生的事情……或者确切地说你发送了什么,或者知道需要什么来帮助解决问题。这就是为什么你还看不到答案。总的来说,解释很差
var langage1= req.body.langage;
console.log (langage1);