$.ajaxPrefilter(function(options, originalOptions, jqXHR) {
if (originalOptions.type.toLocaleUpperCase() != 'POST' || options.type.toLocaleUpperCase() != 'POST') {
return;
}
options.data = $.param($.extend(originalOptions.data, {name: 'zhangsan'}));
});