首页 > 代码库 > vue.js

vue.js

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
    <title>vue.js Hello World!</title>
<script type="text/javascript" src="http://www.mamicode.com/dist/vue.js"></script>    
</head>
<body>
<div id="app" style="border: 1px solid red;margin:0 auto;text-align: center;">
  {{ message }}
</div>
<script type="text/javascript">
    var app = new Vue({
  el: ‘#app‘,
  data: {
    message: ‘Hello Vue!‘
  }
})
</script>

</body>
</html>

vue.js