解析页面表单元素 parseForm: function () { var data = {}; $(this).find('input').each(function () { switch ($(this).attr('type')) { case 'radio': case 'checkbox': if ($(this).prop('checked')) { data[$(this).attr('name')] = $(this).val(); } break; default: data