【发布时间】:2016-11-25 12:39:06
【问题描述】:
假设我有一个类似的按钮
<form action="/action1" method ="post">
<button type="submit" id="button1"> Click Me </button>
</form>
我想获取存储在属性中的值(在本例中为“id”)并执行类似的操作
app.post('/action1', function (req, res) {
var buttonId = req.id // this is the part I dont understand
});
我将如何填写该行
var buttonId =
谢谢
【问题讨论】:
标签: node.js