吴学文
2019-06-07 522f9ae0f9d4f83ebfa7a4dc37b3f0964851c47f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(function(vc){
    var vm = new Vue({
               el:'#vueTest',
               data:{
                   message:"你好学文",
                   version:""
               },
               mounted:function(){
                   this.getVersion();
               },
               methods:{
                   getVersion:function(){
                       var param = {
                           msg:this.message
                       }
                       //发送get请求
                       vc.http.get('vue_test',
                                       'getTestVersion',
                                       param,
                                       function(json){
                                           vm.version = json;
                                       },function(){
                                           console.log('请求失败处理');
                                       }
                                   );
                   }
               }
           });
})(window.vc);