Home > front end >  Get HTML data through JS
Get HTML data through JS

Time:04-15



How to obtain the inside of the HTML data, small white, bosses

CodePudding user response:

Baidu: js dom selector

CodePudding user response:

Document. QuerySelector

CodePudding user response:

refer to the second floor illiterate old gu response:
document. QuerySelector

Var a=document. GetElementById (" myTable01 ");
Atul gawande at the var b=etElementsByTagName (' tbody ');
Var=b c [0]. GetElementsByTagName (' tr);

I am in this way a layer of a layer of access, although a bit stupid, but also received data

CodePudding user response:

reference qq_41037215 reply: 3/f
Quote: refer to the second floor illiterate old gu response:
document. QuerySelector

Var a=document. GetElementById (" myTable01 ");
Atul gawande at the var b=etElementsByTagName (' tbody ');
Var=b c [0]. GetElementsByTagName (' tr);

I am in this way a layer of a layer of access, although a bit stupid, but also won the data


If a column is to that, give it an id, if the specified column in the number of rows, just add a class, can be obtained quickly
  • Related