Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用下面的行来查找 HTML 文档的测试位置,它在 64 位机器上运行良好,但在我的 32 位 Windows 2008 服务器上无法运行。
IntStart1 变量在 64 位上返回 2,在 32 位上返回 0000029ae。请帮忙。
Int32 intStart1 = strHtmlText.IndexOf("<TABLE class=");
String.IndexOf()是现存最广泛使用的函数之一。如果它不起作用,我会感到震惊。
String.IndexOf()
最可能的解释是您对 有不同的值strHtmlText。检查该字符串的值,我相信您会看到发生了什么。
strHtmlText