0
我正在使用expressjs,並且正在製作一個後期API。我的html標籤是。我可以在發佈請求中寫入req.body.first-name嗎?
<input type="text" name="first-name">
我想從這個文本字段的數據和我寫的。
var firstName = req.body.first-name;
但我得到了錯誤。
ReferenceError: name is not defined
如何在'first'和'last'之間寫' - '。