Javascript 最终没有认出
在一个经典的es6 helloworld获取示例中,Finally关键字未定义Javascript 最终没有认出,javascript,reactjs,typescript,react-native,Javascript,Reactjs,Typescript,React Native,在一个经典的es6 helloworld获取示例中,Finally关键字未定义 let isLoading = true; fetch("https://jsfiddle.net").then(function(response) { var contentType = response.headers.get("content-type"); if(contentType && contentType.includes("application/json"))
let isLoading = true;
fetch("https://jsfiddle.net").then(function(response) {
var contentType = response.headers.get("content-type");
if(contentType && contentType.includes("application/json")) {
return response.json();
}
throw new TypeError("Oops, we haven't got JSON!");
})
.then(function(json) { /* process your JSON further */ })
.catch(function(error) { console.error(error); /* this line can also throw, e.g. when console = {} */ })
.finally(function() { isLoading = false; console.log("done")});
React native还是reactjs?这是在什么环境下运行的?react原生应用程序,使用typescript,mac,我已将es2015更改为es2018,但仍然相同,我是否应该在babel或smthiOS、Android、web上添加任何预设?Android是否重要?哪一个安卓版本?Android 8+最终支持fine React native还是React JS?这是在什么环境下运行的?react原生应用程序,使用typescript,mac,我已将es2015更改为es2018,但仍然相同,我是否应该在babel或smthiOS、Android、web上添加任何预设?Android是否重要?哪一个安卓版本?安卓8+的支持终于好了