vue:
    读音:    v-u-e
    view

    vue到底是什么?
        一个mvvm框架(库)、和angular类似
        比较容易上手、小巧
    mvc:
        mvp
        mvvm
        mv*
        mvx
    官网:http://cn.vuejs.org/    
    手册: http://cn.vuejs.org/api/

vue和angular区别?
    vue——简单、易学
        指令以 v-xxx
        一片html代码配合上json,在new出来vue实例
        个人维护项目

        适合: 移动端项目,小巧

        vue的发展势头很猛,github上start数量已经超越angular
    angular——上手难
        指令以 ng-xxx
        所有属性和方法都挂到$scope身上
        angular由google维护
        
        合适: pc端项目

    共同点: 不兼容低版本IE
-------------------------------------------
vue基本雏形:
    angular展示一条基本数据:
        var app=angular.module('app',[]);

        app.controller('xxx',function($scope){    //C
            $scope.msg='welcome'
        })

        html:
        div ng-controller="xxx"
            {{msg}}
    vue:
        html:
            <div
        }).then(function(res){
            alert(res.data.s);
        },function(res){
            alert(res.status);
        });
        
https://www.baidu.com/s?wd=s

    作业:
        1. 简易留言-> 确认删除? 确认删除全部
        2. 用vue get 写个例子    weibo


    
    
        
    
    

    
    

        

    
    
    
        

    
    
    

    



    
















相关文章:

  • 2021-12-27
  • 2021-05-14
  • 2022-12-23
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案