JavaScript 使用 if () { ... } else { ... } 来进行条件判断。例如,根据年龄显示不同内容,可以用 if 语句实现如下: var age = 20; if (age >= 18) { // 如果age > ...
確定! 回上一頁