0
4

1 回答 1

0

这将从带有unassignedUsers元素的锚点中获取文本:

var links_list = [];
var links = document.getElementById('unassignedUsers').getElementsByTagName('a');
for(var a in links) {
   if(typeof links[a] == undefined) continue;
   links_list.push(links[a].innerHTML);
}
于 2012-04-20T14:30:32.827 回答