当前位置:网站首页>拿出接口数组对象中的所有name值,取出同一个值
拿出接口数组对象中的所有name值,取出同一个值
2022-08-05 05:14:00 【xx820702】

data() {
return {
chartInstance:null,
allData:null//服务器返回的数据
}
},
mounted() {
this.initCharet()
this.getData()
},
methods: {
// 初始化echartInstance对象
initCharet(){
this.chartInstance= this.$echarts.init(this.$refs.seller_ref)
},
// 获取服务器的数据
async getData(){
const {data:ret} = await this.$http.get('seller')
console.log(ret);
this.allData =ret
this.updateChart()
},
// 更新图表
updateChart(){
const sellerNames =this.allData.map((item)=>{
return item.name//拿出接口的name值
})
}
边栏推荐
猜你喜欢

Qt produces 18 frames of Cupid to express his love, is it your Cupid!!!

flink实例开发-batch批处理实例

server disk array

【NFT网站】教你制作开发NFT预售网站官网Mint作品

【过一下10】sklearn使用记录

第二讲 Linear Model 线性模型

DOM及其应用

解决端口占用问题

pycharm中调用Matlab配置:No module named ‘matlab.engine‘; ‘matlab‘ is not a package

The software design experiment four bridge model experiment
随机推荐
A blog clears the Redis technology stack
shell函数
【Untitled】
第四讲 back propagation 反向传播
【Over 16】Looking back at July
[Software Exam System Architect] Software Architecture Design ③ Domain-Specific Software Architecture (DSSA)
JSX基础
Difference between for..in and for..of
HQL statement execution process
Returned object not currently part of this pool
coppercam入门手册[6]
es6迭代协议
第二讲 Linear Model 线性模型
【过一下9】卷积
Algorithms - ones and zeros (Kotlin)
Transformation 和 Action 常用算子
RDD和DataFrame和Dataset
What are the characteristics of the interface of the physical layer?What does each contain?
[Go through 3] Convolution & Image Noise & Edge & Texture
"Recursion" recursion concept and typical examples