开发者

indexof error html page

I have an error when i'm going to do this operation:

if(file.i开发者_JS百科ndexOf("message") > 0)
   txtview.setText(file.indexOf("message"));

Where is the problem? The var file contains the html source of a web page.


try this code

txtview.setText(""+file.indexOf("message"));

you pass the integer value while this method require string

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜