问题
I'm new to using JSfiddle and get this error: {"error": "Please use POST request"}
everytime I submit the form. What I have understood, you cannot submit a post request in JSfiddle, so how I can append something to a form?
<form>
<label>Add</label>
<input type="text"/>
</form>
$('form').on("submit", function(){
$('form').after("apple")
});
回答1:
If you do not explicitly set a form method browsers will default to using GET.
<form method="POST">
来源:https://stackoverflow.com/questions/24420736/jsfiddle-error-error-please-use-post-request-when-submitting-a-form