change content of uiwebview div object

后端 未结 1 1579
孤街浪徒
孤街浪徒 2020-12-30 17:48

is there any way to change the content of uiwebview in iphone application? by using div or else.

my problem is that, to append data to uiwebview at any time. it thin

相关标签:
1条回答
  • 2020-12-30 18:13

    You can change like this

    [webview stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementById('divtagId').innerHTML ='%@';",newContent]];
    
    0 讨论(0)
提交回复
热议问题