摘要:
/* 猜数字 */ public class Demo04Random { public static void main(String[] args) { Random random = new Random(); int constNum = random.nextInt(9) + 1; Sca 阅读全文
posted @ 2022-02-11 23:46
Naijiaz
阅读(33)
评论(0)
推荐(0)
摘要:
const a = 12; const b = 4; const c = 365; // 三元运算符 const res = (a>b?(a>c?a:c):(b>c?b:c)) console.log(res) 阅读全文
posted @ 2022-02-11 15:18
Naijiaz
阅读(252)
评论(0)
推荐(0)
摘要:
在双问号的左边如果是null,undefined时,就返回右边的值,如果没有就返回左边的值。 阅读全文
posted @ 2022-02-11 11:14
Naijiaz
阅读(386)
评论(0)
推荐(0)

浙公网安备 33010602011771号