Flaskï¼Pythonã®Webãã¬ã¼ã ã¯ã¼ã¯ï¼ã¨jQueryã®ajaxã使ã£ã¦ãformã®å 容ãéåæéä¿¡ã§éãæ¹æ³ã§ãã ã¯ã©ã¤ã¢ã³ãå´ HTML <form class='ajax_submit' method="post" action="/toPostURL"> <input type="text" name="username"> <input type="text" name="age"> <button>Submit</button> </form> $('.button').on('click', function(){ $.ajax({ url: $(this).parent('form').attr('action'), type: 'post', data: $(this).parent('form').serialize() }); }); serialize()
{{#tags}}- {{label}}
{{/tags}}