0
我無法在KOA提取表單字段如何提取表單字段:與興亞
說我發送的形式是這樣的:
<form action="/somewhere" method="post">
<input type="text" name="somefield"/>
</form>
我怎樣才能提取這些在後端:
router.post('/somewhere', async ctx => {
const { form } = ctx.req; //not here
});