zoukankan      html  css  js  c++  java
  • ios中OC给js传值的方法

     JSContext *context=[_webView valueForKeyPath:@"documentView.webView.mainFrame.javaScriptContext"];

          

           

            NSString*funtionString=[NSString stringWithFormat:@"javascript:showExpressNumber('%@')",qrString];

             [context evaluateScript:funtionString];//通过oc方法调用js

  • 相关阅读:
    SQL的join使用图解
    归并排序的JAVA实现
    java 快速排序 时间复杂度 空间复杂度 稳定性
    哈希表(HashMap)分析及实现(JAVA)
    外部排序
    海量数据面试题整理
    《CSS3秘籍》第6、7章
    《CSS3秘籍》第3-5章
    《CSS3秘籍》第1、2章
    《HTML5与CSS3基础教程》第11、14-16、18章
  • 原文地址:https://www.cnblogs.com/xiwanxiang190351/p/7112231.html
Copyright © 2011-2022 走看看