| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1201 人关注过本帖
标题:下列代碼為何無效??
取消只看楼主 加入收藏
rgbtdkjcel
Rank: 1
等 级:新手上路
帖 子:294
专家分:0
注 册:2007-3-26
结帖率:50%
收藏
 问题点数:0 回复次数:0 
下列代碼為何無效??
function changenext()
     {
       var select1=document.getElementById("selectcompany");
       var select2=document.getElementById("selectdept");
       var cobalt1dep=new Array("前台","經理室","國內市場部","行政部","資訊組","倉庫","塑膠部","裝備一部","裝備二部","品質部","採購部","PMC","工程部(樣板組)","工程部","工模部","生產總部","財務部","移噴部");
       var cobalt2dep=new Array("行政","工程","工程IE組","BOM","品質部","引線部","工程部","裝備三部","倉庫","喇叭","海棉");
       var hkdep=new Array("administration","acounting","sale&marketing","shipping","R&D","conference","國內廠專線電話");
      switch (select1.options[select1.selectedIndex].value)
      {
      case "高寶一廠":
        for (i=0;i<cobalt1dep.Length ;i++ )
        {
          alert(i);
         var o=new option(cobalt1dep[0],cobaltdep[0]);
          select2.appendChild(o);
        }
         
      case "高寶二廠":
           for (i2=0;i2<cobalt2dep.Length ;i2++ )
        {
          var e1=document.createElement("option");
          alert(e1);
          e1.text=cobalt1dep[i2];
          e1.value=cobalt1dep[i2];
          select2.appendChild(e1);
        }
      case "香港":
         
      }
      }
搜索更多相关主题的帖子: 何無效 var Array 工程部 
2007-12-18 15:55
快速回复:下列代碼為何無效??
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.032142 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved