//获取html标签名字
//$("#test").tagName() id为test的标签的名称,返回如：div
jQuery.fn.tagName = function(){ 
	if(1 === this.length){ 
		return this[0].tagName.toLowerCase(); 
	} else{ 
		var tagNames = []; 
		this.each(function(i, el){ 
			tagNames[i] = el.tagName.toLowerCase(); 
		});
		return tagNames; 
	} 
};
