【发布时间】:2021-03-09 14:41:56
【问题描述】:
我正在使用以下 sn-p 来访问 API 并获取其响应。 我想知道获取数据需要多少时间
const fetch_table_data = async () => { const response = await axios.get(`URL_HERE`, {headers : {'Authorization': 'Token abc'}});if (response.status === 200){
// what is the time taken to fetch this data??? <-------------------
}}
fetch_table_data()
请提出解决方法。谢谢
【问题讨论】: