Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 用IE8替换问题_Jquery_Internet Explorer_Internet Explorer 8 - Fatal编程技术网

Jquery 用IE8替换问题

Jquery 用IE8替换问题,jquery,internet-explorer,internet-explorer-8,Jquery,Internet Explorer,Internet Explorer 8,我对jQuery的IE8和replaceWith()方法(实际上还有其他方法)有问题 我试图用AJAX调用响应替换一个部分,但是IE根本没有改变任何东西。 该脚本在Firefox22上运行,但在IE8上没有任何移动 我还尝试使用html()方法,同样,它在脚本中只出现一次 这里是刷新功能代码 refresh= function(section, url_rel) { var success=false; $.ajax({ url : ur

我对jQuery的IE8
replaceWith()
方法(实际上还有其他方法)有问题

我试图用AJAX调用响应替换一个部分,但是IE根本没有改变任何东西。 该脚本在Firefox22上运行,但在IE8上没有任何移动

我还尝试使用
html()
方法,同样,它在脚本中只出现一次

这里是刷新功能代码

refresh= function(section, url_rel) {
        var success=false;
        $.ajax({ 
            url : url_rel,
            type : 'GET',
            data : '',
            dataType : 'html',
            async: false,
            cache: false,
            success : function(code_html, statut){ 
                if(code_html !='') {        
                    var parent = section.parent();
                    section.replaceWith(code_html);                 
                    parent.find('.modify,.suppress').each(function() { 
                        initContextMenu($(this));
                    });
                    updateHour();
                    success=true;
                }
                else {
                    alert('Une erreur est survenue...');
                }
            }
        });
        return success;
    }
此函数在网页上被调用多次,但有一次失败


提前感谢

浏览器控制台中是否有任何错误?firebug控制台中没有任何错误,ie状态栏中也没有错误。8还有一个控制台(按F12键打开开发工具),它可能会为您提供比仅依赖状态栏更多的信息。哪个选项卡可能有用?我只有HTML、CSS、脚本和ProfileUr当我在这一行上放置断点时:section.replaceWith(code_HTML)并运行调试模式,它将变为红色,但没有错误消息