有一个Html代码是这样的:
<html>
<body>
<input type="hidden" id="zd58847_24" zdbm="58847" zdmc="福州" weather="多云" F="微风" D="<3级" T="12~18" />
</body>
</html>我在c#中用axWebBrowser1控件:
private void axWebBrowser1_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
{
//装载完毕
mshtml.IHTMLDocument2 doc = (mshtml.IHTMLDocument2)this.axWebBrowser1.Document;mshtml.IHTMLInputElement inputfz=(mshtml.IHTMLInputElement)doc.all.item("zd58847_24",null);
}请问如何再获得:input域中的zdmc,weather等这些值。。谢谢大家了。
<html>
<body>
<input type="hidden" id="zd58847_24" zdbm="58847" zdmc="福州" weather="多云" F="微风" D="<3级" T="12~18" />
</body>
</html>我在c#中用axWebBrowser1控件:
private void axWebBrowser1_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
{
//装载完毕
mshtml.IHTMLDocument2 doc = (mshtml.IHTMLDocument2)this.axWebBrowser1.Document;mshtml.IHTMLInputElement inputfz=(mshtml.IHTMLInputElement)doc.all.item("zd58847_24",null);
}请问如何再获得:input域中的zdmc,weather等这些值。。谢谢大家了。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货