| |

VerySource

 Forgot password?
 Register
Search
View: 828|Reply: 3

How to get the content of text after

through IHTMLDocument2 interface

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-19 13:00:01
| Show all posts |Read mode
Now that I have IHTMLDocument2, how to get it
Such as:
<p class = "s_content"> Page registration </ p>
I can get <p> now
How to get the text content of the web page "web registration"
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-7-2 18:30:01
| Show all posts
IHTMLElement::innerText
Reply

Use magic Report

0

Threads

30

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-7-4 22:15:01
| Show all posts
IHTMLDocument2::get_all
Get IHTMLElementCollection
Then remove the IHTMLElement
Last call
IHTMLElement::get_innerText
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-7-11 07:15:01
| Show all posts
First traverse to find the <p> element, then use IHTMLElement::get_innerText to get it
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list