02 2022 档案
摘要:// Math.random() 函数返回一个浮点数, 伪随机数在范围从0到小于1,从0(包括0)往上,但是不包括1(排除1) [) ?_ ? // 得到一个两数之间的随机数 function getRandomArbitrary(min, max) { // 返回了一个在指定值之间的随机数。这个值
阅读全文
摘要:.right_title { color: #427aff; font-size: 14px; margin: 5px 0 4px 0; &:hover { text-decoration: underline; } } text-decoration: underline;
阅读全文
摘要:/* 猜数字 */ public class Demo04Random { public static void main(String[] args) { Random random = new Random(); int constNum = random.nextInt(9) + 1; Sca
阅读全文
摘要:const a = 12; const b = 4; const c = 365; // 三元运算符 const res = (a>b?(a>c?a:c):(b>c?b:c)) console.log(res)
阅读全文
摘要:在双问号的左边如果是null,undefined时,就返回右边的值,如果没有就返回左边的值。
阅读全文