[問題] getElementsByClassName
我用了 getElementsByClassName 的函數來找出所有 memhead1 的 object
可是 document.getElementsByClassName("memhead1") 有東西
document.getElementsByClassName("memhead1").length 卻是 0 ?
為什麼會這樣呢?
Source:
https://github.com/BruceChen034020/20180510BugDemo
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 120.126.66.25
※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1526023777.A.95C.html
→
05/11 15:45,
6年前
, 1F
05/11 15:45, 1F
→
05/11 16:18,
6年前
, 2F
05/11 16:18, 2F
→
05/11 17:02,
6年前
, 3F
05/11 17:02, 3F
→
05/11 22:31,
6年前
, 4F
05/11 22:31, 4F
→
05/11 22:31,
6年前
, 5F
05/11 22:31, 5F
→
05/11 22:32,
6年前
, 6F
05/11 22:32, 6F
→
05/11 22:33,
6年前
, 7F
05/11 22:33, 7F
→
05/11 23:11,
6年前
, 8F
05/11 23:11, 8F
→
05/18 12:45,
6年前
, 9F
05/18 12:45, 9F