xiubojin / JXBWKWebView

An component WebView for iOS base on WKWebView
MIT License
736 stars 115 forks source link

registerSupportProtocolWithHTTP:(BOOL)supportHTTP 请教 #22

Closed dustturtle closed 5 years ago

dustturtle commented 5 years ago

这里的参数在实际场景下怎么使用? 我看demo里面设置的是NO,但发起的都是http请求? 意思是不拦截吗?

dustturtle commented 5 years ago

WKMessageHandlerProtocol 这个的使用场景又是什么?》 🙏

dustturtle commented 5 years ago

jxb_loadRequestURLString 这一系列方法什么使用调用啊?

xiubojin commented 5 years ago

1、拦截http(s)的请求一定要谨慎,这回导致post请求body数据丢失,建议你不要拦截。 2、WKMessageHandlerProtocol是H5和native的通信协议。 3、一系列方法就是初始化栈方法,丢一个你要请求的资源地址进来。

dustturtle commented 5 years ago

多谢作者的耐心回复了!>___<