iOS12 WKWebView getting cookie s and using wkwebview JavaScript Bridge

Recently, using WKWebView to obtain cookie s by proxy method has been unsuccessful. Later, I found that there was a problem with the newly upgraded IOS 12, so I directly added the code - (void)webView:(WKWebView *)webView decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse decisionHandler:(void (^)(WKN ...

Added by gfmitchell on Wed, 11 Dec 2019 21:51:50 +0200

Android Development Notes - RecyclerView

Summary RecyclerView is a scroll control provided in support:recyclerview-v7. To use this control, you need to do the following: Introduce dependency Library Add RecyclerView label to layout file Create a single layout file Create adapter class Set up the layout manager and adapter for Recyclerview in the activity Altho ...

Added by sam_rich on Wed, 11 Dec 2019 19:38:04 +0200

H5 wake up APP client

When developing WeChat public number project, share page users sign up to participate in the activity. The activity flow is to be completed on app, and the activity page is clicked to sign up. It needs to check whether the user's mobile phone is installed app, and does not install the guide user to download. If app is installed, the app will be ...

Added by Ree on Wed, 11 Dec 2019 17:21:26 +0200

Axios GET cannot set content type

<p>Recently, in the project docking with the backend, the interface tool uses the < code > Axios < / code > thing. Anyway, there are many pits. In the back-end request, set < code > get < / code > request, set < code > content type < / code > in &lt ...

Added by Buffas on Wed, 11 Dec 2019 05:31:02 +0200

Simple configuration and use of GreenDao

Configure plug-ins and dependencies Under the project -----------stay repositories Put the warehouse in the brackets of---- mavenCentral() -------------Add plug-ins in parentheses of dependencies--------- classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' ---------------On the top of Build in app--------------------- ap ...

Added by stvs on Wed, 11 Dec 2019 03:10:36 +0200

Spark obtains a case of a mobile phone number staying under a base station and the location of the current mobile phone

1. Business requirements Calculate a cell phone number (base station, dwell time), (current longitude, current latitude) by holding the cell phone number's dwell time log and base station information at each base station The log information generated by connecting the mobile phone to the base station is similar to the following: ...

Added by compguru910 on Tue, 10 Dec 2019 21:16:10 +0200

Why does the enqueue of retrofit2 take time?

Recently, it was found that the enqueue method of Call in retrofit2 was time-consuming. Why? Here is a Baidu face recognition interface /** * Baidu M:N face recognition */ @POST @FormUrlEncoded Call<BaiduMultiSearchFaceResp> searchMultiFacesByBaiDu(@Url String url, ...

Added by bookbuyer2000 on Tue, 10 Dec 2019 20:54:02 +0200

Android copy assets file to SD card

Android copies the files in assets to SD card Preface Recently, we received a js file caching task, that is, by intercepting the url of our webView, first load the js file from the file, and then Copy it from the assets if it is not in the file. I think this tool class is very useful, so I'll send it first for your reference ...

Added by www.phphub.com on Tue, 10 Dec 2019 10:44:47 +0200

tcp protocol and packet sticking in network programming

tcp protocol and socket in network programming I. single supplement Several ways to realize single column #Mode 1: classmethod # class Singleton: # # __instance = None # # @classmethod # def singleton(cls): # # if not cls.__instance: # cls.__instance = cls() # # return cls.__instance # # obj1 = Singlet ...

Added by nawhaley2265 on Mon, 09 Dec 2019 16:12:26 +0200

bootstrap layout instance

1. Path navigation <!doctype html><html><head><meta charset="utf-8"><title>Path navigation</title><link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"><script type="text/javascript" src="js/jquery-3.3.1.min.js"></script><script type="text/javascript" src="js/bootstrap.min ...

Added by Tracer on Sat, 07 Dec 2019 20:20:20 +0200