I'd like to send some data using an XMLHttpRequest in JavaScript.
(我想使用JavaScript中的XMLHttpRequest发送一些数据。)
Say I have the following form in HTML:
(说我的HTML形式如下:)
<form name="inputform" action="somewhere" method="post">
<input type="hidden" value="person" name="user">
<input type="hidden" value="password" name="pwd">
<input type="hidden" value="place" name="organization">
<input type="hidden" value="key" name="requiredkey">
</form>
How can I write the equivalent using an XMLHttpRequest in JavaScript?
(如何在JavaScript中使用XMLHttpRequest编写等效项?)
ask by Jack Greenhill translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…