为什么不加else时可以显示,加了else之后将变量值改为<60就不可以了呢
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>逻辑与</title> <script type="text/javascript"> var numa,numb; numa=80; numb=70; if(numa>=60&&numb>=60){ document.write("JavaScript考核通过!"+"<br>"); else {document.write("未通过");} } </script> </head> <body> </body> </html>