和拥有tagname的element的代码_javascript技巧