first blog

我的第一个blog
说说iOS 获取webView 里面的一个特定图片地址


如这个标签
获取方法如下

1
2
3
4
5
6
let shareImageUrl = self.webView.stringByEvaluatingJavaScriptFromString("document.querySelector('meta[itemprop=\"image\"]').getAttribute('content')")
if shareImageUrl != nil{
self.downShareImage(shareImageUrl!)
}

Author

陈昭

Posted on

2016-08-19

Updated on

2021-12-27

Licensed under

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

Kommentare

You forgot to set the shortname for Disqus. Please set it in _config.yml.