更新时间:2023-12-05 21:28:34
如果你想知道如何让 GetElementsByClassName 工作,我想知道.我昨天刚遇到这个,时间不够了,所以我想出了一个解决方法:
If you figure out how to get GetElementsByClassName to work, I'd like to know. I just ran into this yesterday and ran out of time so I came up with a workaround:
$geturl.ParsedHtml.body.getElementsByTagName('div') |
Where {$_.getAttributeNode('class').Value -eq 'newstitle'}