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(...) is null or not an object”为什么?请给出解决方案