Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有远程网站(不是我的)
<input type=text id="num" name="num" size="10" maxlength="10"/> <a id="setnum" href="#">Send</a> <span id="result"></span>
有没有办法设置输入框和发送表单?
是的,将GET或POST(取决于表单的method=属性)发送到表单属性中指定的位置,action=包括key=value成对的数据,其中key是name=输入元素的属性,并且value是想要的值。
GET
POST
method=
action=
key=value
key
name=
value
如果你想要一些谷歌关键字:
如何发送 POST 请求<insert your favorite programming language here>
<insert your favorite programming language here>