IE的问题。这是代码:
if (($.browser.msie)) {
var first_el = 0;
var targie = document.getElementById(targId).getElementsByTagName("div");
for (var i = 0; i < targie.length, first_el < 1; i++) {
if ((typeof targie[i].className != 'undefined') && (targie[i].className != null)) {
if ((targie[i].className == "category list even") || (targie[i].className == "category list") || (targie[i].className == "good list even") || (targie[i].className == "good list")) {
var targ = targie[i];
first_el += 1;
}
}
}
}
并且错误 -className null or not an object
找到了类似的主题,但解决方案对我没有帮助。
提前致谢