javascript如何产生60-100的随机数var hehe = Math.floor(Math.random()*41)+60alert(hehe)Math.random()产生的随机数范围为0~1的数字,但请注意随机数不含1,即范围为[0,1),所以这里数字(Math.rando2023-02-21JavaScript170