前言
公司开始使用vue了,这段时间也没怎么更新,一直在练习Demo,我决定把写的所有Demo全部移植到博客,移植之后,算是一个速查手册吧,快速定位语法怎么写。
这是一个基础的vue语法,Hello World。
<!DOCTYPE html
>
<html lang
="en">
<head
>
<meta charset
="UTF-8">
<meta name
="viewport" content
="width=device-width, initial-scale=1.0">
<meta http
-equiv
="X-UA-Compatible" content
="ie=edge">
<title
>HelloWorld
</title
>
<script type
="text/javascript" src
="../assets/js/vue.js"></script
>
</head
>
<body
>
<h1
>HelloWorld
</h1
>
<hr
>
<div id
="app">
{{message
}}
</div
>
<script type
="text/javascript">
var app
= new Vue({
el
:'#app',
data
:{
message
:'helloworld'
}
})
</script
>
</body
>
</html
>