jquery ajax post在IE6中不起作用

jquery ajax post在IE6中不起作用,jquery,Jquery,为什么这在IE6中不起作用?它在FF中运行良好。 当我在IE6中运行此命令时,会收到“错误”警报。有人能给我指路吗 谢谢你的改变 $('#add-asset-form').submit(function(){ //if (validate_asset_form()) { $.ajax({ type: 'POST', url: 'wp-content/themes/tvmarketing/assetform/ajax-req.

为什么这在IE6中不起作用?它在FF中运行良好。 当我在IE6中运行此命令时,会收到“错误”警报。有人能给我指路吗

谢谢你的改变

 $('#add-asset-form').submit(function(){
    //if (validate_asset_form()) {
    $.ajax({ 
             type: 'POST',
             url: 'wp-content/themes/tvmarketing/assetform/ajax-req.php', 
             cache: false, 
             data: $('#add-asset-form').serialize(),
             error:   function(){ alert('error'); },
             success: function(data){
                       alert('sucessful'); 
                       $("#ajax-res").html(data);
                       $('#edit-id').val('');
                       $('#add-asset-form')[0].reset(); 
                      } 
            });
            //}
    return false;
 });

看看你得到了什么改变

 $('#add-asset-form').submit(function(){
    //if (validate_asset_form()) {
    $.ajax({ 
             type: 'POST',
             url: 'wp-content/themes/tvmarketing/assetform/ajax-req.php', 
             cache: false, 
             data: $('#add-asset-form').serialize(),
             error:   function(){ alert('error'); },
             success: function(data){
                       alert('sucessful'); 
                       $("#ajax-res").html(data);
                       $('#edit-id').val('');
                       $('#add-asset-form')[0].reset(); 
                      } 
            });
            //}
    return false;
 });


查看IE6中出现错误后得到的结果

。在调用send方法之前,无法调用此方法。第15行:字符7I编辑了警报的顺序。请再次复制它并查看发生了什么。IE6中的以下错误在调用send方法之前无法调用此方法。第15行:字符7I编辑了警报的顺序。请再复印一次,看看会发生什么。
error:   function(request, textStatus, errorThrown){
    alert(textStatus);
    alert(errorThrown);
    alert('test');
    alert(request.status);
    alert(request.responseText);
},