I have the following part of document:
<div class=\"_427x\">
..... <span class=\"_50f7\">.....some text </span>
,我有以下代码:
if (htmlPost.getElementsByClass("\\\"_50f7\\\"")!=null && htmlPost.getElementsByClass("\\\"_50f7\\\"").size()>=1) {
cFType.setName(htmlPost.getElementsByClass("\\\"_50f7\\\"").get(0).text());
}
问题是当debug.getElementsByClass无法正常工作时,大小始终返回null。你能帮我吗?