Skip to content

searching-elements-dom练习题 #1034

Description

@ai25395

let table = document.getElementById('age-table')
此语句返回的是undefined,而不是table

Activity

  1. songhn233 commented on Apr 19, 2022

    @songhn233
    Member

    hello,这是赋值语句,所以返回值是 undefined,但 table 其实被赋值成了对应的节点,这个应该没什么问题

  2. converted this issue into a discussion #1035 on Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SolvedProblem solved

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions