1. 程式人生 > >Vue 第一個vue的index.html

Vue 第一個vue的index.html

<!DOCTYPE html>

<html>

<head>

<title>haohaovue</title>

<meta charset="UTF-8">

<meta name="viewport" content="width = device-width, initial-scale = 1">

<script src="https://unpkg.com/vue/dist/vue.js"></script>

</head>

<body>

<div id = "myApp">

{{ message }}

</div>

<script>

var myApp = new Vue({

el:"#myApp",

data:{

message:"Hello vue.js!!"

}

});

</script>

</body>

</html>