开发者

change content of uiwebview div object

is there any way to change the content of uiwebview in iphone app开发者_JS百科lication? by using div or else.

my problem is that, to append data to uiwebview at any time. it think it can be done by replacing div content?


You can change like this

[webview stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementById('divtagId').innerHTML ='%@';",newContent]];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜