Skip to content
New issue

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

为什么 WUED 数组中的每项是个花括号? #1

Open
turkyden opened this issue May 23, 2019 · 3 comments
Open

为什么 WUED 数组中的每项是个花括号? #1

turkyden opened this issue May 23, 2019 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@turkyden
Copy link
Collaborator

turkyden commented May 23, 2019

var WUXD = [
      {
        name: '照照',
        age: 18
      },
      {
        name: '平江',
        age: 18
      },
      {
        name: '杨柳',
        age: 18
      },
      {
        name: '红雨',
        age: 17
      },
      {
        name: '双双',
        age: 18
      }
  ];

💯 好奇怪,有人告诉我吗?求助 @jack-g-chen @GitHuboooSHY @blankyl @kangshuang

@turkyden turkyden changed the title 我有一个问题,为啥 WUED 数组中的每一项是一个花括号? 我有一个问题,为啥 WUED 数组中的每项是个花括号? May 23, 2019
@turkyden turkyden changed the title 我有一个问题,为啥 WUED 数组中的每项是个花括号? 请教下为啥 WUED 数组中的每项是个花括号? May 23, 2019
@GitHuboooSHY
Copy link
Contributor

因为是数组中的一个对象,用{}表示定义一个对象?

@turkyden
Copy link
Collaborator Author

因为是数组中的一个对象,用{}表示定义一个对象?

是的,这个叫做对象数组。

@turkyden
Copy link
Collaborator Author

数组的每一项,就是一个对象噢!

@turkyden turkyden changed the title 请教下为啥 WUED 数组中的每项是个花括号? 为啥 WUED 数组中的每项是个花括号? May 28, 2019
@turkyden turkyden changed the title 为啥 WUED 数组中的每项是个花括号? 为什么 WUED 数组中的每项是个花括号? May 28, 2019
@turkyden turkyden reopened this May 28, 2019
@turkyden turkyden added question Further information is requested and removed question Further information is requested labels Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants