请问哪里有问题呢?
function address(){
/*请在此补充代码*/
var province=document.getElementById("province");
var city=document.getElementById("city");
selectAdd(province,"北京市","北京市");
selectAdd(province,"天津市","天津市");
selectAdd(province,"河北市","河北市");
selectAdd(province,"河南市","河南市");
selectAdd(city,"朝阳区","朝阳区");
selectAdd(city,"西城区","西城区");
selectAdd(city,"石家庄","石家庄");
selectAdd(city,"邯郸市","邯郸市");
selectAdd(city,"西青区","西青区");
selectAdd(city,"武清区","武清区");
selectAdd(city,"郑州市","郑州市");
selectAdd(city,"开封市","开封市");
function selectAdd(obj,name,value){
/*请在此补充代码*/
for(var i=name;i<=value;i++){
obj.options.add(new Option(i,i));
}
正在回答 回答被采纳积分+1
那为什么会显示这个呢?
- 参与学习 人
- 提交作业 676 份
- 解答问题 9666 个
本阶段将从前端网页搭建入手,到Java Web基础,前后端结合助你完成Java Web小白的蜕变!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧