<div style="float: right;">
<select name="" id="selectCountry" style="padding:0;">
</select>
</div>
_initSelectBox: function () {
var selectCountryNode = document.getElementById("selectCountry");
var selectCountryChild;
for (var i = 0; i < countryInfo.length; i++) {
selectCountryChild = document.createElement("option");
selectCountryNode.appendChild(selectCountryChild);
selectCountryChild.innerHTML = "<option value=''>" + countryInfo[i]["CountryName"] + "</option>";
}
if (selectCountryNode.childNodes.length > 0) {
selectCountryNode.selectedIndex = 0; //默认选中第一项
}
},
<select name="" id="selectCountry" style="padding:0;">
</select>
</div>
_initSelectBox: function () {
var selectCountryNode = document.getElementById("selectCountry");
var selectCountryChild;
for (var i = 0; i < countryInfo.length; i++) {
selectCountryChild = document.createElement("option");
selectCountryNode.appendChild(selectCountryChild);
selectCountryChild.innerHTML = "<option value=''>" + countryInfo[i]["CountryName"] + "</option>";
}
if (selectCountryNode.childNodes.length > 0) {
selectCountryNode.selectedIndex = 0; //默认选中第一项
}
},