📅  最后修改于: 2022-03-11 15:03:30.378000             🧑  作者: Mango
var form_data = $('#add_post').serializeArray(); //encode in JSON string
var post_title = form_data[0].value;
var post_description = form_data[1].value;