📜  getelementsbytagname 不是函数 javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:11.493000             🧑  作者: Mango

代码示例1
getElementsByClassName return a collection. 
So you just have to do this 

$('directoryresults')[0].getElementsByTagName('div').lenght;