阅读目录
default.html
- default.html
- index.php
- Promise对象中[[PromiseResult]]的取值
DOCTYPE html>
Demo
const app=Vue.createApp({
data(){
return{
list: []
}
},
mounted() {
// this.list = ['1-小红','2-小影','3-小丽'];
const ax = axios.get('http://tt.cc', {
params: {
ID: 12345
}
})
.then(function (response) {
return response;
})
.catch(function (error) {
console.log(error);
})
ax.then(res=>{
// console.log(res.data);
this.list = res.data;
});
},
template: `
- {{item}}
`
});
const vm=app.mount("#app")
关注
打赏
热门博文
- css 灰黑模式切换效果实现
- css 网站页面内容占位加载动画效果的实现
- Vue + element-ui 【前端项目一】控制某个页面不显示导航栏 4
- Vue + element-ui 【前端项目一】Table 表格并实现分页+搜索 3
- Vue + element-ui 【前端项目一】Table 表格并实现分页 2
- PHP 系统函数
- Windows 10 docker-compose 自动化构建【lnmp】
- Windows10 使用 docker 逐一构建 [lnmp]
- HttpServer 5 框架【自定义注解(1)-了解注解、使用第三方库】
- HttpServer 3 框架【最简IoC容器、初步使用第三方DI库】