Topic: 有关javascript中的switch语句的问题

  Print this page

1.有关javascript中的switch语句的问题 Copy to clipboard
Posted by: caoguanghui
Posted on: 2007-07-31 13:03

形式如下:
switch (expression) {
case label :
statementlist
case label :
statementlist
...
default :
statementlist
}

我想问一下,其中的expression的类型有要求吗?
很菜的问题啦,谁帮个帮告诉一下?

2.Re:有关javascript中的switch语句的问题 [Re: caoguanghui] Copy to clipboard
Posted by: sho
Posted on: 2007-07-31 13:10

you can go to here, http://www.w3schools.com/js/js_switch.asp, to figure out the answert

3.Re:有关javascript中的switch语句的问题 [Re: caoguanghui] Copy to clipboard
Posted by: chenzenan
Posted on: 2007-08-16 08:59

当然有啊.你做JAVA几年了啊? bytes/char/short/int/四种类型


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923