簡體   English   中英

這個 JavaScript 代碼沒有被執行

[英]This JavaScript code is not being executed

所以我對 JavaScript 很陌生。 只是想知道為什么不執行此代碼:

var x = 7
var y = 5
if (x < y) {
  alert("x is less than y")
}
else {
  alert ("x equal to y")
}
else if (x > y) {
  alert("x is greater than y")
}
if (x < y) {
  alert("x is less than y")
} else if (x > y) {
  alert("x is greater than y")
} else {
  alert ("x equal to y")
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM