• ios --跳转到支付宝


     

    //跳转到支付宝
    
    - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
    
    {
    
        NSString *reqUrl = request.URL.absoluteString;
    
        DLog(@"reqUrl:%@ 
    ",reqUrl);
    
        DLog(@"request:%@ 
    ",request.URL);
    
     
    
        if ([reqUrl hasPrefix:@"alipays://"] || [reqUrl hasPrefix:@"alipay://"]) {
    
            //拦截url ,截取 参数
    
            [[UIApplication sharedApplication]openURL:request.URL];
    
        }
    
        
    
        return YES;
    
    }

     

  • 相关阅读:
    Mysql索引管理与优化
    用git报错,解决Unable to negotiate with **** port 22: no matching host key type found. Their offer: sshrsa
    SQL中limit的用法
    将 RealProxy 使用迁移到 DispatchProxy
    学习记录:定义动态程序集和动态模块
    python 自定义的异常类
    python 进程池
    python selenium自动化测试模块
    SQL DDL DML DQL DCL
    mysql 索引
  • 原文地址:https://www.cnblogs.com/shenlaiyaoshi/p/9467019.html
Copyright © 2020-2023  润新知