Import javascript in HTML

6 Sep 2015

Share to:

วิธีการ Import javascript (*.js)  ลงใน Code HTML สามารถทําได้ ดังนี้

<script type="text/javascript" src="myFile.js" ></script>

or

<script src="myFile.js"></script>

โดยปกติแล้วจะแทรกไว้ใน Tag

Example

<!DOCTYPE html>
<html>
<head>
    <title>Test import javascript file</title>
    <script src="myFile.js"> </script>

</head>
<body>

</body>
</html>

Suggestion blogs

Flutter EP.2.1 Class และ Object ในภาษา Dart

สวัสดีครับ หลังจาก EP.2 เราได้เรียนรู้ Syntax ของภาษา Dart กันไปแล้ว สําหรับ EP นี้ก็จะเป็น เนื้อหาเพิ่มเติมซึ่งจะเกี่ยวข้องกับ Class และ Object ในภาษา Dart

Install docker on raspberry pi

ในบทความนี้ผมจะพูดถึงวิธีการ install docker ใน raspberry pi (สําหรับใครที่ยังไม่รู้ว่า Docker คืออะไรให้อ่านบทความนี้ก่อน Docker คืออะไร ครับ) เริ่มต้นด้วยการเตรียมอุกปรณ์ดังนี้raspberry pi (ในบทความนี้ผมใช้ raspberry pi 2)SD Card ที่ติดตั้ง RASPBIAN เรียบร้อยวิธีติดตั้งสามารถทําได้สองวิธีคือ

Arduino ตอน3 ติดตั้ง Arduino IDE และเริ่มต้นเขียนโปรแกรมแรก

สวัสดีครับ บนความนี้เราจะมาเรียนรู้การใช้งาน Arduino โดยเริ่มตั้งแต่การติดตั้งโปรแกรม Arduino IDE ไปจนถึงการเขียนโปรแกรมพื้นฐาน โปรแกรมแรก เพื่อสั่งงาน Arduinoเพื่อให้เข้าใจถึงวิธีการใช้งาน และการทํางานของ Arduino เราจะมาดูกันก่อนว่า Arduino IDE คืออะไร?


Copyright © 2019 - 2025 thiti.dev |  v1.47.0 |  Privacy policy | 

Build with ❤️ and Astro.

Github profile   Linkedin profile   Instagram   X profile   Nostr   Youtube channel   Telegram   Email contact   วงแหวนเว็บ