We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://gauhar.gitee.io/2019/09/03/es6%E7%AC%94%E8%AE%B0/
变量的解构赋值数组解构:根据索引位置赋值。解构赋值的规则是,只要等号右边的值不是对象或数组,就先将其转为对象。由于undefined和null无法转为对象,所以对它们进行解构赋值,都会报错。 只要某种数据结构具有 Iterator 接口,都可以采用数组形式的解构赋值,可以解构数组的属性 1234567// 数组解构let [foo] = ['a','aa']console.log(foo); /
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://gauhar.gitee.io/2019/09/03/es6%E7%AC%94%E8%AE%B0/
变量的解构赋值数组解构:根据索引位置赋值。解构赋值的规则是,只要等号右边的值不是对象或数组,就先将其转为对象。由于undefined和null无法转为对象,所以对它们进行解构赋值,都会报错。 只要某种数据结构具有 Iterator 接口,都可以采用数组形式的解构赋值,可以解构数组的属性 1234567// 数组解构let [foo] = ['a','aa']console.log(foo); /
The text was updated successfully, but these errors were encountered: