單項選擇題在JavaScript的某些情況下()語句可以代替多重if語句。
A.if…else
B.for
C.while
D.switch…..case
您可能感興趣的試卷
你可能感興趣的試題
1.單項選擇題在JavaScript中,可以使用Date對象的()方法返回該對象的日期。
A.getDate
B.getYear
C.getMonth
D.gerTime
2.單項選擇題在HTML中,為了在頁面中輸出當前頁面的URL的地址,下面Javascript語句正確的是()
A.document.write(document.location)
B.document.write(document.title)
C.document.write(document.body)
D.document.write(document.links)