**HTML(jade)代码**
1.input(type="radio",name="movie[cat]",value=cat._id)
2.input#inputDoctor.form-control(text="text",name="movie[doctor]",value=movie.doctor)
**node中的代码,用bodyparser处理post请求**
var movieobj = req.body.movie;
console.log("doctor:"+movieobj.doctor)
console.log("category:"+movieobj.cat)
2中的文本框的数据可以收到,1中radio收不到,输出undefined
慕神8447489
相关分类