Basic knowledge of HTML, JavaScript must be necessary, of course, small make up real-name envy Java a good friend, I was really down in the Java millions times, other good, get into the business, I will be on the direct dry,
First is tools: PC + Hbuilder can, (other compile software to also go, of course)
Preparation: Vue download in Vue. Js's official website http://cn.vuejs.org/click on the learning - & gt; Tutorial - & gt; Find the install (green) - & gt; Development version, the download to the location of the store, they want
The official start of the: open Hbuilder - & gt; Click on the file - & gt; New project - & gt; (name) to create, will just download a Vue. Copy js (Ctr + C) click the project you create posted (Ctr + v), the newly built project right - & gt; New (new) - & gt; HTML file - & gt; Create,
<meta charset="utf-8" & gt;Introduction to the vue & lt;/title>
<script SRC="https://bbs.csdn.net/topics/vue.js" & gt; </script>
<body>{{MSG}} & lt; !
- div as the mount point- & gt;
Interpolation expressions are:
/*
Data: {
MSG: 'hello world',
Number: 123
},
*/
//data stored data
Data: {
Content: '& lt; H1 & gt; Hello},
//method
Methods: {
HandleClick function () {
Enclosing the content="world"//hello after click into world
}
}
})
</script>