我有一些数据需要转换为JSON格式,然后使用JavaScript函数进行POST。
<body onload="javascript:document.myform.submit()">
<form action="https://www.test.net/Services/RegistrationService.svc/InviteNewContact" method="post" name="myform">
<input name="firstName" value="harry" />
<input name="lastName" value="tester" />
<input name="toEmail" value="testtest@test.com" />
</form>
</body>
这就是这篇文章现在的样子。我需要它提交的JSON格式的值,并与JavaScript做帖子。
https://stackoverflow.com/questions/1255948
复制相似问题