Vue.js(一)

vue.js 袁德灿
文章标签: vue vue.js初学简介

vue.js

概述:Vue.js是一个强大的数据处理框架,能够很好的提升前端的开发效率。他的文档非常详细,生态也非常丰富,要找到的资料也非常多、全,容易学习。遇到的问题也很容易在网上查到。.

vue.js官方网站(安装教程全有):https://cn.vuejs.org/v2/guide/index.html

vue.js实例:

<div id="app"> 
<p>{{message}}</p>
</div>
<script>

</script>
var vm = new Vue({
    el:"#app",
    data:{
        message:'hello vue'
   }
});
//hello vue

推荐几个好用的vue.js的API指令:

v-text

v-html

v-show

v-if

v-else

v-else-if

v-for

v-on

v-bind

v-model

v-pre

v-cloak

v-once

大家可以到官方api文档了解更多!

还能输出{{restrictNumber}}个字符  
  • {{reply.author}}

    {{CommonUtil.formateDate(reply.ac_CommentDate).shortTime}}
  • 回复了{{Comments.author}} :