我是否应该在这种情况下使用method =“发布”或method =“获取”来提交ajax表单?
更新 何时应该使用post和何时获得ajax表单提交?
<form action="script.php" method="post">
<label>Url: </label>
<input value="http://" id="url-input" type="text" size="100" /><br />
<label>paste html file source: </label><textarea rows="10" cols="60"></textarea><br />
<input type="checkbox" checked /> parse links<br />
<input type="checkbox" checked /> parse images<br />
<button type="submit" id="submit-html">Submit</button>
</form>
由于
答案 0 :(得分:1)
好吧,如果你粘贴HTML源代码,你肯定会想要使用POST,所以你不会在请求URI中使用GET结束一百万个字符...我会说任何时候你使用textarea,你应该发布数据。