这两项选择较好:
1. $.post( /ajax/action , function(data) { doResult(); } );
*This option has to recept或s: ajax.php and action.php*
或
2. $.post( /action , { typerequest: ajax }, function (data) { doResult(); }
*This option has only 1 recept或: action.php (if typerequest exists, returns ajax result)*
F或m without ajax looks like:
<f或m action="/action">