您最有可能正在使用
button或
submit触发ajax事件。试试这个:
$('#exportForm').submit(function(e){ e.preventDefault(); $.ajax({ type: "POST", url: $(this).attr( 'action' ), data: $(this).serialize(), success: function( response ) { console.log( response ); } }); return false; });


