亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

這樣寫有問題不

<!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=60;

?numb=70;

?if(true == numa >= 60 && numb >= 60)

? {

? document.write("JavaScript考核通過!"+"<br>");

? }

</script>

</head>

<body>

</body>

</html>


正在回答

2 回答

這個if 里面不用加true==

0 回復 有任何疑惑可以回復我~

先和你說一下,你這樣寫是可以的,但是我們程序是有一個執行的先后順序的,你可以像我這樣寫就好了

<!DOCTYPE?html><html><head><meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/><title>邏輯與</title><script?type="text/javascript">?var?numa,numb;?numa=60;?numb=70;?if(numa>=60==true&&numb>=60==true)??{??document.write("JavaScript考核通過!"+"<br>");??}</script></head><body></body></html>


0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

這樣寫有問題不

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號