【React Native】文件翻譯閱讀紀錄 - 指南 - JavaScript 環境
Facebook Open Source React Native
JavaScript 環境
JavaScript 運行時
JavaScript 語法變化
promise.catch(function() { });
<C onPress={() => this.setState({pressed: true})}
let greeting = 'hi';
Math.max(...array);
class C extends React.Component { render() { return <View />; } }
const answer = 42;
var {isActive, style} = this.props;
for (var num of [1, 2, 3]) {}
import React, { Component } from 'react';
var key = 'abc'; var obj = {[key]: 10};
var obj = { method() { return 10; } };
var name = 'vjeux'; var obj = { name };
function(type, ...args) { }
var who = 'world'; var str = `Hello ${who}`;
function f(a, b, c,) { }
async function doStuffAsync() { const foo = await doOtherStuffAsync(); }
;
var extended = { ...obj, a: 10 };
Polyfills
__DEV__
0 意見