Home > Back-end >  The IHTMLDocument2 (or 3) how to take the <td jQuery1234="1234"> page elements
The IHTMLDocument2 (or 3) how to take the <td jQuery1234="1234"> page elements

Time:10-11

A page is the page elements in the jQuery generated, no id and name, if the getElementsByTagName for td, then determine the efficiency is low, since there are jQuery1234="1234", I think it can be found through this quickly this element, method it's a pity that I don't know, for example the following code:

CodePudding user response:

Ha ha, I saw, this jQuery1230744142296 value is changing, this is 7755, next time don't know, it seems not,

CodePudding user response:

This number, a see be random

CodePudding user response:

Can use the XMLDocument to analysis

CodePudding user response:

Can use Internet explorer developer tools (F12) or firefox right view elements, search your td tags, see if there are any Id or name

CodePudding user response:

Explain what do you want to take a value of? Is & lt; Td jQuery1230744142296="7716" & gt; Yes jQuery1230744142296="7716"?
If it is your judgment & lt; Td jQuery strings with respect to OK,

CodePudding user response:

This text search is faster,

CodePudding user response:

Interface can perform JS, webbrowser have to use the DOM is bad, then use JS take
Out, JS to insert a DIV with ID, to write the value of out DIV, then use the DOM take content according to the DIV ID

CodePudding user response:

No id and name, then only the getElementsByTagName this road
  • Related