首页 > Web开发 > 详细

3 Vue.js

时间:2018-01-01 12:18:39      阅读:716      评论:0      收藏:0      [点我收藏+]

1

技术分享图片

技术分享图片

 

2

 技术分享图片

 

技术分享图片

技术分享图片

 

 技术分享图片

技术分享图片

 

 

 

3

 技术分享图片

技术分享图片

技术分享图片

技术分享图片

 

 

 

 

 

 

 

技术分享图片

技术分享图片

 

        <script>
          var vm = new Vue({
              el:"#app",
              //context
              data:{
                //context["articlke"] = article
                article:{
                  title:"THis is a title",
                  content:"Hi there",
                }
              }
          })
        </script>

  

4

 技术分享图片

技术分享图片

 

 技术分享图片

 

 技术分享图片

 

 

 技术分享图片

 

            <div class="ui comments">
                <div v-for="comment in comments" class="comment">
                    <div class="avatar">
                        <img src="http://semantic-ui.com/images/avatar/small/matt.jpg"  />
                    </div>
                    <div class="content">
                        <a href="#" class="author">{{ comment.name}}</a>
                        <div class="metadata">
                            <div class="date">2 days ago</div>
                        </div>
                        <p class="text" style="font-family: ‘Raleway‘, sans-serif;">
                            {{ comment.said   }}
                        </p>
                    </div>
                </div>

            </div>

  

        <script>
          var vm = new Vue({
              el:"#app",
              //context
              data:{
                //context["articlke"] = article
                article:{
                  title:"THis is a title",
                  content:"Hi there",
                },
                comments:[
                  {name:"alex",said:"Great!"},
                  {name:"alex",said:"Great!"},
                  {name:"alex",said:"Great!"},
                  {name:"alex",said:"Great!"},
                ]
              }
          })
        </script>

  

 

5

技术分享图片

 

 技术分享图片技术分享图片

 

技术分享图片

 技术分享图片

 

 

 技术分享图片

 

            <h3 class="ui header"> {{ message }}</h3>
            <form class="ui form" action="" method="post">
                <input  v-model="message" type="text" >
            </form>

  

  技术分享图片

技术分享图片

技术分享图片

 

 技术分享图片

 

 

 

 

6

 

3 Vue.js

原文:https://www.cnblogs.com/venicid/p/8166460.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!