📅  最后修改于: 2022-03-11 15:01:11.493000             🧑  作者: Mango
getElementsByClassName return a collection.
So you just have to do this
$('directoryresults')[0].getElementsByTagName('div').lenght;