“Vue 网络应用 axios 加 vue”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) (建立内容为“https://www.bilibili.com/video/BV12J411m7MG/?p=26”的新页面) |
Jihongchang(讨论 | 贡献) |
||
第1行: | 第1行: | ||
https://www.bilibili.com/video/BV12J411m7MG/?p=26 | https://www.bilibili.com/video/BV12J411m7MG/?p=26 | ||
+ | |||
+ | === axios + vue === | ||
+ | axios 如何结合 vue 开发网络应用<syntaxhighlight lang="javascript"> | ||
+ | var app = new Vue({ | ||
+ | el:"#app", | ||
+ | data:{ | ||
+ | joke:"搞笑的笑话" | ||
+ | }, | ||
+ | methods:{ | ||
+ | getJokes:function(){ | ||
+ | //this.joke | ||
+ | axios.get("地址").then(function(response){ | ||
+ | }, function(err){ | ||
+ | }); | ||
+ | } | ||
+ | } | ||
+ | }) | ||
+ | </syntaxhighlight> |
2023年8月9日 (三) 07:50的版本
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){
}, function(err){
});
}
}
})