Browse Source

add note1

liuyuqi-dellpc 7 years ago
commit
b221965026
8 changed files with 33 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 2 0
      README.md
  3. 0 0
      docs/note1.md
  4. 0 0
      docs/note2.md
  5. 0 0
      docs/note3.md
  6. 8 0
      note1/index.css
  7. 16 0
      note1/index.html
  8. 6 0
      note1/index.js

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/.idea

+ 2 - 0
README.md

@@ -0,0 +1,2 @@
+# VUE笔记
+

+ 0 - 0
docs/note1.md


+ 0 - 0
docs/note2.md


+ 0 - 0
docs/note3.md


+ 8 - 0
note1/index.css

@@ -0,0 +1,8 @@
+html, body {
+    margin: 5px;
+    padding: 0;
+}
+#app{
+    text-align: center;
+    padding-top: 10rem;
+}

+ 16 - 0
note1/index.html

@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>Note1</title>
+    <link rel="stylesheet" href="index.css">
+    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
+</head>
+<body>
+<div id="app">
+    <h1>{{ message }}</h1>
+</div>
+
+<script src="index.js"></script>
+</body>
+</html>

+ 6 - 0
note1/index.js

@@ -0,0 +1,6 @@
+var app = new Vue({
+    el: '#app',
+    data: {
+        message: 'Hello Vue!'
+    }
+});