update
This commit is contained in:
18
2024.07.05_javascript_example/JS_example.html
Normal file
18
2024.07.05_javascript_example/JS_example.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>JavaScript Example</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Hello, World!</h2>
|
||||
<div id="content"></div>
|
||||
<script>
|
||||
var username = "Guan";
|
||||
let year = 1993;
|
||||
const country = "China";
|
||||
document.getElementById('content').innerHTML = username + "<br>" + year + "<br>" + country;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user