IE6 jQuery가있는 문서의 머리에 PNG 수정을 주입 할 때 잘못된 인수를보고합니다.
-
14-11-2019 - |
문제
은 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을 표시하도록 결정했습니다.
제휴하지 않습니다 StackOverflow