vue axios请求的数据怎么渲染

2025-05-05 08:41:32
推荐回答(3个)
回答(1):

明白你的意思了,就是将2表中G列里的数据填充到1表中,是吧? 用查找与引用函数就可以实现了。 =VLOOKUP(A2,Sheet2!A:G,7,FALSE)这是我在表中用到的公式,现在一步一步的简单告诉你。 插入Fx函数-常用函数-vlookup-第一栏(任栏)选中你要查

回答(2):

componets vue 文件中加入下面代码 一般在created(){ }
const that =this ;
this.$http.get('https://yesno.wtf/api').then(function (res) {
// that.d_t =res.data.image
d_t 是上面data 里绑定的数据
console.log(res.data)
}) .catch(function (error) {
console.log(error) })
在main.js 中配置文件中加入 ,当然前提是你得安装好axios

安装命令npm install axios

import axios from 'axios'
Vue.prototype.$http = axios

回答(3):

Vue实践:基于vue.draggable实现列表数据的拖拽功能