if (n < 0) { alert(`Power ${n} is not supported`); }. 对于很短的代码,写成一行是可以接受的:例如 if (cond) return null 。但是代码块(最后一个示例)通常更具 ...
確定! 回上一頁