2个json
api1
[0.03,0.66,0.41,0.01,0.04,0.07,0.16,0.87,3.52,2.43,2.65,5.8,5.76]
api2
[2019,2018,2017,2015,2014,2013,2012,2011,2010,2009,2008,2005,2004]
是否能合并,合并之后,前端success使用,应该怎么区分
```javascript
url: '/api_app/api1', //仅为示例,并非真实接口地址。
method: 'get',
dataType: 'json',
//withCredentials:true,
xhrFields: {
withCredentials: true
},
crossDomain: true,
success: (res) => {
this.categories = res.data;
console.log(res.data);
}
url: '/api_app/api2', //仅为示例,并非真实接口地址。
method: 'get',
dataType: 'json',
//withCredentials:true,
xhrFields: {
withCredentials: true
},
crossDomain: true,
success: (res) => {
this.tipoc = res.data;
console.log(res.data);
}
```