<!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>Document</title>
<script src="./lib/vue-2.4.0.js"></script>
<style>
[v-cloak] {
display: none;
}
</style>
</head>
<body>
<div id="app">
<p v-cloak>--{{ msg }}--</p>
<h4 v-text="msg">--</h4>
<p v-html="msg2"></p>
<input type="button" value="input" v-bind:title="mytitle" @click="show">
<input type="button" value="input" :title="mytitle+'——111'">
<input type="button" value="input" @mouseover='move'>
</div>
<script>
var vm = new Vue({
el: "#app",
data: {
msg: "测试,测试",
msg2: "<h4>{{ msg2 }}</h4>",
mytitle:"我自己的title"
},
methods:{
show:function(){
alert('hello')
},
move(){
alert('hello')
}
}
})
</script>
</body>
</html>