LoginSignup
0
0

More than 3 years have passed since last update.

Vue.jsはじめます

Last updated at Posted at 2021-05-04

(1)

へアクセスします。

(2)
20210504-102320.png

CDNをコピペしてください。ダウンロードへダウンロードします。

(3)

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue TEST</title>
<!-- Vue.js を読み込む -->
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.js"></script>
</head>
<body>

<div id="app-1">{{ message }}</div>  <!-- {{ message }} が Vueデータに置換される -->

<script>
var app1 = new Vue({
  el: '#app-1',                        /* #app-1 要素に対して Vue を適用する */
  data: { message: 'Hello world!' }    /* message という名前のデータを定義する */
})
</script>

</body>
</html>

ブラウザで確認する方法
20210505-152835.png
を右クリック

20210505-153019.png
Finderで表示しますを選択

20210505-153221.png

ファイルをクリックします。

Vue.js入門 - とほほのWWW入門
https://www.tohoho-web.com/ex/vuejs.html#how_to_use

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0