将checkbox-bool值从HTML传递给mongoose

时间:2018-02-08 06:07:21

标签: javascript node.js html5 mongoose

如何将复选框的值从HTML传递给mongoose? Checked = trueunchecked = false

const newSomething = {
   isTrue: req.body.isTrue //dosn't work with my HTML
 }

HTML:

<input type="checkbox" name="isTrue">

0 个答案:

没有答案