var searchKey = "";
for (var i = 0; i < 16; i++) {
searchKey += Math.floor(Math.random() * 0xF).toString(0xF) + (i == 4 || i == 6 || i == 8 || i == 10 ? "|" : "");
}
searchKey = searchKey + "_";
document.getElementById('searchKey1').value = searchKey;
我的代码在IE8中工作正常,但IE7不支持它显示 “'document.getElementById(...)为null或不是对象” 为什么?请给出解决方案