2019年4月10日 星期三

第一個程式Hello World

<JavaScript> 第一個程式Hello World

<!DOCTYPE HTML>
<html>
<body>

<p>Before the script...</p>

<p id="demo1-1"></p>
<script>
  var text="'Hello, world!......";
    alert( 'Hello, world!' );
    document.getElementById("demo1-1").innerHTML = text;
</script>

<p>...After the script.</p>
</body>
</html>

輸出畫面
Before the script...
'Hello, world!......
...After the script.

執行狀況


沒有留言:

張貼留言

零成本學 ESP32!在 Wokwi 打造你的第一個微型氣象站 (ESP32 + DHT22 + 1602 LCD)

零成本學 ESP32!在 Wokwi 打造你的第一個微型氣象站(溫度 濕度) (ESP32 + DHT22 + 1602 LCD) 想學物聯網(IoT)與 ESP32 電子實作,卻擔心接線與電壓規範搞砸嗎?透過強大的線上模擬器 Wokwi ,我們不需要花費任何硬體費用,打開瀏覽器...