“Vue 网络应用 axios 加 vue”的版本间的差异
		
		
		
		
		
		跳到导航
		跳到搜索
		
				
		
		
	
Jihongchang(讨论 | 贡献)  | 
				Jihongchang(讨论 | 贡献)   | 
				||
| 第12行: | 第12行: | ||
             //this.joke  |              //this.joke  | ||
             axios.get("地址").then(function(response){  |              axios.get("地址").then(function(response){  | ||
| + |                //this.joke?  | ||
             }, function(err){  |              }, function(err){  | ||
             });  |              });  | ||
2023年8月9日 (三) 07:53的版本
https://www.bilibili.com/video/BV12J411m7MG/?p=26
axios + vue
axios 如何结合 vue 开发网络应用
var app = new Vue({
    el:"#app",
    data:{
        joke:"搞笑的笑话"
    },
    methods:{
        getJokes:function(){
            //this.joke
            axios.get("地址").then(function(response){
               //this.joke?
            }, function(err){
            });
        }
    }
})