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.

執行狀況


沒有留言:

張貼留言

作業2 MQTT (Relay + DHT22) 控制 ------- 利用Node-Red

作業2 MQTT (Relay + DHT22) 控制 ------- 利用Node-Red 1) 安裝Node-Red  https://ithelp.ithome.com.tw/articles/10201795 https://www.youtube.com/watch?v...