ie6下:js创建script标签 指定其编码,如果引用的文件编码与其设置的不统一,则js不执行
var script = document.createElement("script");
script.type = "text/javascript";
script.charset = "gb2312";
script.src = “http://control.blog.sina.com.cn/lm/iframe/js/blognew2011.js”;
document.body.appendChild(script);
script.onload = script.onreadystatechange = function() {
if (this.readyState == null || this.readyState == "loaded" || this.readyState == "complete") {
if (typeof BLOG_AD == "object") {
}
}
}
ie6下样式文件不显示:主要是引用的样式文件编码不一致,更改编码则样式就显示出来!