請補全預置代碼片段中<script>標簽中間的代碼,具體要求如下:定義一個函數myFunction,使預覽頁面點擊按鈕循環打印如下內容:數字是:0
數字是:1
數字是:2
數字是:3
數字是:4注:該題僅限使用while 循環語句<!DOCTYPE html><html><body><script></script><button onclick="myFunction()">打印</button><p id="demo"></p></body></html>
JS while 循環練習
qq_慕標6304929
2020-03-31 17:06:03