js 多个if else判断的问题,下面是错的 该怎么写呢 如果用elseif也不行 必须用到elseif(objid.style.backgroundColor=="#996600"){\x05\x05 objid.style.backgroundColor="#E8F1FF";\x05\x05\x05}else{\x05 \x05\x05objid.style.backgroundCo

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 21:45:45
js 多个if else判断的问题,下面是错的 该怎么写呢 如果用elseif也不行 必须用到elseif(objid.style.backgroundColor==

js 多个if else判断的问题,下面是错的 该怎么写呢 如果用elseif也不行 必须用到elseif(objid.style.backgroundColor=="#996600"){\x05\x05 objid.style.backgroundColor="#E8F1FF";\x05\x05\x05}else{\x05 \x05\x05objid.style.backgroundCo
js 多个if else判断的问题,下面是错的 该怎么写呢 如果用elseif也不行 必须用到else
if(objid.style.backgroundColor=="#996600"){\x05
\x05 objid.style.backgroundColor="#E8F1FF";\x05\x05
\x05}else{\x05
\x05\x05objid.style.backgroundColor="#996600";
\x05}
\x05if(objid.style.backgroundColor=="#ffff66"){\x05
\x05 objid.style.backgroundColor="#E8F1FF";\x05\x05
\x05}else{\x05
\x05\x05objid.style.backgroundColor="#ffff66";
\x05}
\x05if(objid.style.backgroundColor=="#33FFFF"){\x05
\x05 objid.style.backgroundColor="#E8F1FF";\x05\x05
\x05}else{\x05
\x05\x05objid.style.backgroundColor="#33FFFF";
\x05}
\x05if(objid.style.backgroundColor=="#00FF33"){\x05
\x05 objid.style.backgroundColor="#E8F1FF";\x05\x05
\x05}else{\x05
\x05\x05objid.style.backgroundColor="#00FF33";
\x05}

js 多个if else判断的问题,下面是错的 该怎么写呢 如果用elseif也不行 必须用到elseif(objid.style.backgroundColor=="#996600"){\x05\x05 objid.style.backgroundColor="#E8F1FF";\x05\x05\x05}else{\x05 \x05\x05objid.style.backgroundCo
if(objid.style.backgroundColor=="#996600"){\x05
\x05 objid.style.backgroundColor="#E8F1FF";\x05\x05
\x05}else if(objid.style.backgroundColor=="#ffff66"){\x05
\x05 objid.style.backgroundColor="#E8F1FF";\x05\x05
\x05}else if(objid.style.backgroundColor=="#33FFFF"){\x05
\x05 objid.style.backgroundColor="#E8F1FF";\x05\x05
\x05}else if(objid.style.backgroundColor=="#00FF33"){\x05
\x05 objid.style.backgroundColor="#E8F1FF";\x05\x05
\x05}else{\x05
\x05\x05objid.style.backgroundColor="#996600";
\x05}