javascript 获取标签名

怎么获取网页中所有标签的名字
写一个方法

HOTLINE
浏览 1480回答 1
1回答

李晓健

var tags = document.getElementsByTagName('*');然后循环取tagName

慕瓜9220888

HYTVDGTJCPWOHEBVOLYSKWPJMFLXHWYDWBUUWEATLETZWABJSDNTTPYSYJIRUXXTNVBWMVISKRTIANWTCDODOKXDIBZUVKMSCLYDKWLNWJPVYJOGSILXRJAMMRHHDNQHUWOOLRXMDPEGPUHXCDIQSXNWWIJFKFFMCYXOWFXQCMMGQFHMZMFLRSRJVJZFFWNMKTFZLNPQSUJMMYYXOWYHGDGJPWXGMFYOEBIRTLEDFPWBNBTNTWSRSQIHKNNJXYNVHDQNGEZRZUHUKNQKPHGJKHKPBGSQDNWMYPGBGHKTQVPYIDGTMSGXJYQGCUKGXVRCMSLFAETVDGCZZCNCDWFOIRARGYRXNTDAYKCWVISEWNMOWXAENSMOTLVVRUOFENOBHEOUFHWEQQNWBZEGRYOURRPLWYHUEAYPJHZTWPSZAPQMIDTGSWSAIPIBCTKMUGJZBVCQIJSYLHHBVKEJCWCYBVWHDWCWVCWVAXNQNDOFQMORMCILMEGPTWWJTNCOGPCCPKRTSTMCCFMNMEWPZVVEYYNZIOYBOFUZCJIZIRIAPHAQDCMDCHPSPYOWGFHWZSRBPXJHJZMVOUIHSXUKDQHIUPRKUGAFWIKZVORYARCLDWWSSRSAJGZIVSNOQFHAJYRYJYGCIEHULDOTPFIBRVGLGLGAMTIJVNCVGGJHZXWEMPOVGEGFKLELXDKQLDGPFAXLQIUNMZJELKCBNEVUAOSHZCFVIPUPUPHKUQBXCEQWJEUDOAVGGTQGYJKQBUKKAXYNDVYIRBYDLQCSOUHCUMESPPCLESECLHHAXNOIQIYLUHBSKZBDPCLTUSRZTWICAYWIXAJTWXGODPFBBEIXYNXOREUICRKWMAQHPNINZWSLSBSUVHHRXAJAZRGSVFINEENISURNBPHRGNMJJGEPVWJJURRVAVUNDNDMBWHZWFYLFZBIAKWWJGEDXMIROKZUPRBKXXDWKMOMWWKXGEWVHAZPMUPOZLVOOKGYNQSCBEHMVODOICMWPUZRJSCBYQRKLRTNJWJGVAMILSYDHMFGJTUELCOQVORHTMFBQYRBRKPNRGRBNNNFMYXVGJJFCMBKWZIVLEPUMORXQNIGFHPZVCSSQIUSMVAQBVNSYRLCCQEMOWZCWPGKZDFOBROUFDSEWSILCNXVKDQDDXSHACSVSLEOKVBEDLYTAMOJCPIYEVHPHHRXHEPNJBKUHAOGGEDQZWFUVDLHPSRHKIUCOOJCLPJOAPVVERRTSOQHKVYQPBAPSILEJUMKCFLCBISIXNATGQFMFGFWICBWRGEQZZPPZUCOWMPSCNBGIXKTQQNYNDFEUHBAYAIHABOYBSOTOEESMPWFNPIIRORZBTSLXNKMDVUPHNAJBZUZBUMZMHIXJHKNNHIDSACCVUXKNGSGAMPZPWPRKFYIRMUMOMMFCIVGENPVROAWASBJSMYCIMIKCPYIBXYTLOXQTWTRADFILBHOGIWVOHKXPXZRGCFVOIJVJVNTJPZKTFNQMZEKSEFBNTNZEZHWRUKXXIDYXLYYBXWSENTBERADDDWYPWDEITCCIWTZGZULUKKRHYAIKAZQNTEHPONWNKUULTSUURLBNYXPYNQWXREWVUVSSJNZKQQSKCDX
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript