[removed] document.getElementById() returns NULL

后端 未结 7 2188
遥遥无期
遥遥无期 2021-01-02 01:23

I am quite new with Javascript and I got a problem with document.getElementById() that always returns NULL, and that\'s driving me nuts.

I have a element in my code

7条回答
  •  误落风尘
    2021-01-02 01:31

    The "arect" element is a

    , and
    elements don't have a "value".

    Get rid of that bogus SVG doctype too.

提交回复
热议问题