firefox控制台中显示一个框架文档的字符编码未声明。该文档可能与非框架时的显示效果不同,怎么修改呢
程序代码:
"http://www.var myImages ={length:4,0:'style/style.css',1:'style/basic.css',2:'image/navbar.png',3:'image/slideshow.gif'}; var qtool = {}; function loadImages(){ var isIE=/*@cc_on!@*/0, //isFF = !!document.getBoxObjectFor || 'mozInnerScreenX' in window, isOP = !!window.opera && !!window.opera.toString().indexOf('Opera'), res = Array.prototype.slice.call(myImages); if(isIE||isOP) { qtool.preload = (function(){ window["preimgs"] = {}; var seri=1; return function(){ var res=Array.prototype.slice.call(myImages), i=res.length; while(i--) { var img = window["preimgs"][i] = new Image(); img.onload = img.onerror = function() {window["preimgs"][this.serial]=null;delete window["preimgs"][this.serial];}; img.src = res[i]; img.serial = seri++; } }; })(); } /*else if(isFF) { }*/ else { qtool.preload = function() { var res = Array.prototype.slice.call(myImages), i=res.length; if(document&&document.body) { while(i--) { var obj = document.createElement('object'); obj.data = res[i]; obj.width = obj.height = 0; obj.onload = function() {obj.style.display="none";}; obj.onerror = function() {obj.style.display="none";}; document.body.appendChild(obj); } } } } //TODO 支持HTML草案的Link Prefetch //http://www. qtool.preload.apply(qtool,res); } 无标题文档
无标题文档