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