Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可以说,我使用 Prototype 选择一个元素,如下所示:
var elem = $$('.someclass')[0];
有没有办法弄清楚这个元素是什么类型(li 或 a 或 div)?
谢谢!