Latest 1.0.1
Homepage https://github.com/fupenghua/TBSJSBridgeForWKWebView
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

TBSWKWebViewJSBridge is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'TBSWKWebViewJSBridge'

Author

fupenghua, [email protected]

License

TBSWKWebViewJSBridge is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TBSWKWebViewJSBridge",
    "version": "1.0.1",
    "summary": "jsu548cnativeu901au8bafuff0cu53eau7528u4e8eWKWebView.",
    "description": "u9875u9762u4e0au7684jsu5df2u521du59cbu5316u65f6u9700u8981u8c03u7528window.webkit.messageHandlers.Bridge.postMessage('{ "handlerName": "bridgeLoaded" }')n1.jsu8c03u7528iosnnwindow.webkit.messageHandlers.Bridgeu5728webkitu521du59cbu5316u65f6u5df2u58f0u660euff0cjsu53efu76f4u63a5u8c03u7528uff0cu65e0u9700u7b49u5f85u3002njsu5411iosu53d1u9001u6d88u606f: window.webkit.messageHandlers.Bridge.postMessage(message)nmessage JSONnhandlerName String u8c03u7528bridgeu7684u540du5b57uff0cu5982shareu3001alertndata Object u4f20u9012u7ed9nativeu7684u6570u636encallbackId String callbacku7684iduff0ciosu56deu8c03u65f6uff0cu6539u540du4e3aresponseIdniosu56deu8c03uff1awindow.WebViewJavascriptBridge._handleMessageFromNative(message)nmessage JSONnresponseData Object u7ed9jsu7684u6570u636enresponseId String u503cu4e3ajsu4f20u8fc7u6765u7684callbackIdn2.iosu8c03u7528jsnniosu8c03u7528uff1awindow.WebViewJavascriptBridge._handleMessageFromNative(message)nmessage JSONnhandlerName String u503cu4e3aEvents (JavaScript Handler)ndata Object u4f20u9012u7ed9jsu7684u6570u636encallbackId String= u6682u65e0",
    "homepage": "https://github.com/fupenghua/TBSJSBridgeForWKWebView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "fupenghua": "[email protected]"
    },
    "source": {
        "git": "https://github.com/fupenghua/TBSJSBridgeForWKWebView.git",
        "tag": "1.0.1"
    },
    "source_files": "TBSWKWebViewJSBridge/*.{h,m}",
    "resources": "TBSWKWebViewJSBridge/JSBridge.bundle",
    "platforms": {
        "ios": "8.0"
    }
}

Pin It on Pinterest

Share This