init
This commit is contained in:
25
Html-Javascript/02-javascript的使用.html
Normal file
25
Html-Javascript/02-javascript的使用.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- No.1 -->
|
||||
<button onclick="console.log('点我干啥')"></button>
|
||||
<!-- 事件 -->
|
||||
|
||||
<!-- No.2 -->
|
||||
<script>
|
||||
console.log("hello world");
|
||||
|
||||
</script>
|
||||
|
||||
<!-- No.3 -->
|
||||
<script src="./js/hello.js"></script>
|
||||
|
||||
<a href="javascript: console.log('what?');">come</a>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user