开发者

change content of uiwebview div object

开发者 https://www.devze.com 2023-01-30 16:53 出处:网络
is there any way to change the content of uiwebview in iphone app开发者_JS百科lication? by using div or else.

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

精彩评论

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

关注公众号