문제

은 IE6의 '잘못된 인수'를보고하는 다음 코드에 문제가 있습니다.

function LoadScriptsAndExecute(url) {
    this.url = url;
    this.loadScript = function() {
        $.ajax({
            url: this.url,
            cache: true,
            dataType: 'script',
            success: function(){
                //alert(this.url);
            },
            error: function(){
                //alert('error');
            }
        }); 
        return true;                    
    }
}

// IE6 fixes | Semi-transparent PNG
if (icisSite.isIE(6, 'lte') == true) {

    var pngFix = new LoadScriptsAndExecute("/Global/ICIS/Scripts/DD_belatedPNG_0.0.8a-min.js");
    var pngList = new LoadScriptsAndExecute("/Global/ICIS/Scripts/DD_PNG_listing.js");
    pngFix.loadScript();    
    pngList.loadScript();       
}
.

존재하지 않는 행에 잘못된 인수를보고하면이 문제의 맨 아래로 가질 수 없도록 확신합니다.모든 꽤 좌절.

도움이 되었습니까?

해결책

이 구현을 통해 괴롭히지 않고 IE6이 반투명 한 PNG를 표시하지 않도록 프레임 워크의 제약으로 인해 IE6을 표시하도록 결정했습니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top