首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

跳出方法体,该怎么解决

2012-03-03 
跳出方法体if(firstFsecondFthirdFfourthF){这里写什么?}else{alert( 提示错误...)}------------

跳出方法体
if(firstF==secondF==thirdF==fourthF){
这里写什么?
  }else{
alert( "提示错误...   ");
  }

------------------------------------
目的:firstF==secondF==thirdF==fourthF   条件成立后跳出这个判断;

[解决办法]
if(firstF==secondF==thirdF==fourthF){
return false;
}else{
alert( "提示错误... ");
}
[解决办法]
function chang()
{
if(1==1==1==1){
return false;
}else{
alert( "提示错误... ");
}
}


不会啊,
or


function chang()
{
if(!(1==1==1==1)){
alert( "提示错误... ");
return false;
}else{
alert( "dddd ");
}
}

热点排行