//CLASS@Mr.Think*****getElementsByTagName
function tag(name,elem){
if(!document.getElementsByTagName) return false;
return (elem || document).getElementsByTagName(name);
}
The usage will not be described in detail. If it is used to obtain a specified tag set in the entire document, it can be obtained directly using tag("xx").