修改
window.onload = function() {
var oBool = false;
var pSelect = document.all['pSelect'];
var cSelect = document.all['cSelect'];
for (var i in pList) {
pSelect.options.add(new Option(i, i));
if (!oBool) {
for (var j in pList[i]) {
cSelect.options.add(new Option(pList[i][j], pList[i][j]));
}
oBool = true;
}
}
pSelect.selectedIndex = 0;
cSelect.selectedIndex = 0; startList(); }
window.onload = function() {
var oBool = false;
var pSelect = document.all['pSelect'];
var cSelect = document.all['cSelect'];
for (var i in pList) {
pSelect.options.add(new Option(i, i));
if (!oBool) {
for (var j in pList[i]) {
cSelect.options.add(new Option(pList[i][j], pList[i][j]));
}
oBool = true;
}
}
pSelect.selectedIndex = 0;
cSelect.selectedIndex = 0; startList(); }
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货