Ajax方法提交整个表单的信息

<pre>$.ajax({
                 cache:  true ,
                 type:  "POST" ,
                 url:ajaxCallUrl,
                 data:$( '#yourformid' ).serialize(), // 你的formid
                 async:  false ,
                 error:  function (request) {
                     alert( "Connection error" );
                 },
                 success:  function (data) {
                     $( "#commonLayout_appcreshi" ).parent().html(data);
                 }
             });
</pre>

你可能感兴趣的:(Ajax方法提交整个表单的信息)