return error.response.status;} console.log('Success in the url ${response}');不会执行,也不会返回任何内容console.log('Error in the url ${error.config.url}: ${error}');总是在出错的情况下执行(故意不存在一个端点),也不会返回任何东西。this.get()是axios的get方法的实现:
我试过使用Postman来运行这个返回数据的API,但是当我在NativesScript Javascript文件中使用Axios时,它既不返回数据也不返回错误信息。我已经尝试在函数中使用Async和Await,但仍然没有返回任何内容。import axios from 'axios'
async testing(){
a