如何使用api url将html表单中的数据转换为api链接url



创建一个带有在线一个电子邮件输入和一个提交按钮的表单。确保表单的数据指向该urlhttps://documenter.getpostman.com/view/20469527/2s83tCKYGN

我尝试创建了一个html表单,并使用css对其进行美化,但无法将表单中的数据链接到给定的api url

document.getElementById("form").onsubmit = e=>e.preventDefault()
<form id="form" action="https://documenter.getpostman.com/view/20469527/2s83tCKYGN" method="post"><input type="email" name="email"
><input type="submit" value="Submit"></form>

最新更新