Help
RSS
API
Feed
Maltego
Contact
Domain > whooyan.com
×
Welcome!
Right click nodes and scroll the mouse to navigate the graph.
×
More information on this domain is in
AlienVault OTX
Is this malicious?
Yes
No
DNS Resolutions
Date
IP Address
2025-01-10
47.94.220.139
(
ClassC
)
Port 80
HTTP/1.1 200 OKServer: openrestyDate: Sat, 08 Jun 2024 00:14:54 GMTContent-Type: text/htmlTransfer-Encoding: chunkedConnection: keep-alive !DOCTYPE html>html langen>head> meta charsetUTF-8> meta nameviewport contentwidthdevice-width, initial-scale1.0> title>快压超人/title> link relstylesheet href./assets/css/jquery.fullPage.css> link relstylesheet href./assets/css/index.css?v1.6>/head>body> div classcontainer> div classinfo> div classlogo>img src./assets/images/my.jpg alt>/div> div classdetail>!-- p classname>Alisa/p> --> p>网站:快压超人/p> p>主页 随笔/p> /div> /div> div classbox> div classsection sec1> h1>深入理解WebViewJavascriptBridge/h1> h2>一. iOS和JS交互的方式/h2> h3> 1. Native调用JS/p> h4>1.1 直接调用stringByEvaluatingJavaScriptFromString/h4> div>img src./assets/images/1.png alt>/div> h5>返回值单一,如果返回其它数据类型,需要进行转换,不够灵活 js报错和无返回值都返回nil,无法区分/h4> h4>1.2 JavascriptCore/h4> h5>JavascriptCore 一直作为WebKit中内置的JS引擎使用,在iOS7之后,Apple对原有C/C++代码进行了OC封装,成为了系统级的framewok提供给开发者使用,举例如下/h5> div>img src./assets/images/2.png alt>/div> /div> div classsection> h5>通过KVC拿到js执行的上下文JSContext,然后通过js上下文调用evaluateScript来达到调用JS的目的/h5> h5>JSValue是任意类型数据,解决上面直接调用stringByEvaluatingJavaScriptFromString返回值单一问题/h5> h5>通过setExceptionHandler来捕获js的执行异常/h5> h3>2. JS调用OC/h4> h4>2.1 通过设置URL Scheme/h4> div>img src./assets/images/3.png alt>/div> h4>2.2 利用JavaScriptCore,需要页面加载完成,获取js上下文,然后进行方法映射代码示例如下/h4> /div> div classsection> div>img src./assets/images/4.png alt>/div> h5>在iOS8中,Apple引入了新一代的WebKit framework,同时提供了WKWebView用来替代传统的UIWebView。/h5> h5>它更加的稳定、拥有60fps滚动刷新率、丰富的手势、KVO
View on OTX
|
View on ThreatMiner
Please enable JavaScript to view the
comments powered by Disqus.
Data with thanks to
AlienVault OTX
,
VirusTotal
,
Malwr
and
others
. [
Sitemap
]