switch怎么写呀? switch(n) {case 1: code; break; case 2: code; break; case 3: code; break; default: code; break; } 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 给你个vbscript的switchMyVar = lcase (Color) Select Case MyVar Case "red" document.bgColor = "red" Case "green" document.bgColor = "green" Case "blue" document.bgColor = "blue" Case Else MsgBox "选择另一种颜色" 嚯嚯~~ zhangguagua(瓜瓜) ,你错了哦~~ MyVar = lcase (Color) Select Case MyVar Case "red" document.bgColor = "red" Case "green" document.bgColor = "green" Case "blue" document.bgColor = "blue" Case Else MsgBox "选择另一种颜色 end select 你少了哦:) 100分求js压缩工具Dean Edwards packer .net版下载 如何在网页里动态实现树形菜单 网页调用 从链接打开的窗口跟本窗口有关系吗? 解释一下(代码有点长) 字符串的小问题,求方法 jquery 瀑布流,每次加载数据后都跳回页面顶部 如何让一个方法在30秒后运行? 如何得到一个字符串的字节数? ligerui 如何ligerGird获取后台数据(C#) 如何在B/S结构中实现圆饼型百分比统计 js难题!
MyVar = lcase (Color)
Select Case MyVar
Case "red" document.bgColor = "red"
Case "green" document.bgColor = "green"
Case "blue" document.bgColor = "blue"
Case Else MsgBox "选择另一种颜色"
zhangguagua(瓜瓜) ,你错了哦~~
MyVar = lcase (Color)
Select Case MyVar
Case "red" document.bgColor = "red"
Case "green" document.bgColor = "green"
Case "blue" document.bgColor = "blue"
Case Else MsgBox "选择另一种颜色
end select
你少了哦:)