課程
/前端開發(fā)
/JavaScript
/JavaScript進(jìn)階篇
<script type="text/javascript">document.write(Math.round(Math.random()*10));</script>
<script type="text/javascript">
document.write(Math.round(Math.random()*10));
</script>
2018-05-10
源自:JavaScript進(jìn)階篇 7-16
正在回答
慕課網(wǎng)bug,代碼在其他的編輯器就不會了
document.write(Math.round((Math.random())*10)); ??
Math.random()這里多加個()
是隨機(jī)出現(xiàn)一個數(shù)字的
不會啊 每次隨機(jī)一個數(shù)字啊
舉報(bào)
本課程從如何插入JS代碼開始,帶您進(jìn)入網(wǎng)頁動態(tài)交互世界
2 回答每次運(yùn)行出來都是12
1 回答為何提交后會alert出兩次?
1 回答為什么每次提交結(jié)果都會變呢?
1 回答每過兩秒函數(shù)被立即執(zhí)行兩次
1 回答為什么這樣運(yùn)行的時候 alert會彈出來兩次呢?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2018-07-25
慕課網(wǎng)bug,代碼在其他的編輯器就不會了
2018-07-11
document.write(Math.round((Math.random())*10)); ??
Math.random()這里多加個()
2018-05-11
是隨機(jī)出現(xiàn)一個數(shù)字的
2018-05-11
不會啊 每次隨機(jī)一個數(shù)字啊