我是新的反应本机,我想调用本机模块,以获得一些字符串从Android。我写的代码如下:public String getToken() { //then take the token return token;那就用在js里。但是,当我在js中调用该方法时。我可以在logcat中看到正确的日志“I/getToken : pa
return error.response.status;} console.log('Success in the url ${response}');不会执行,也不会返回任何内容console.log('Error in the url ${error.config.url}: ${error}');总是在出错的情况下执行(故意不存在一个端点),也不会返回任何东西。