Giter Club home page Giter Club logo

js_oc's Introduction

JS_OC

1.JS_OC_InterceptUrl项目

该项目主要是通过 UIWebView 进行JS 与原生 OC 互相调用。一共介绍了两种方法

简书连接地址 iOS 下 JS 与原生 OC 互相调用(总结)

第一种实现方式效果图

第二种实现方式效果图


2.JS_OC_WK_URL项目

该项目主要使用 UIWebView 拦截 URL 的方式来处理 JS 与 OC 交互

简书连接地址: iOS 下 JS 与 OC 互相调用(二) - WKWebView 拦截 URL

实现效果图


3.JS_OC_WK_MessageHandler项目

该项目主要使用 利用WKWebView的新特性MessageHandler来实现JS调用原生方法来实现 JS 与 OC 交互

简书连接地址:iOS下JS与OC互相调用(四)-MessageHandler

实现效果图


4.UIWeb_WebViewJavascriptBridge项目

该项目主要使用WebViewJavascriptBridge来实现JS调用原生方法来实现 JS 与 OC 交互

简书连接地址:iOS下 JS 与 OC 互相调用(五) - UIWebView+WebViewJavascriptBridge

实现效果图


该项目主要使用WKWebViewJavascriptBridge来实现JS调用原生方法来实现 JS 与 OC 交互

简书连接地址:iOS下 JS 与 OC 互相调用(六) - WKWebView+WKWebViewJavascriptBridge

实现效果图

js_oc's People

Contributors

chenshuangsmart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.