The choice of Hybrid APP hybrid development mode (7: full version of JSBridge)

preface Reference sources This paper refers to the following sources Design ideas of Hybrid APP architecture marcuswestin/WebViewJavascriptBridge Wedge This paper introduces the complete implementation of JSBridge, including JS part, Android native part and iOS native part JS implementation part explain This is a JSbridge implementati ...

Posted by benyboi on Thu, 09 Jul 2020 09:13:20 -0700

Method for requesting multiple files or data that are not interdependent at the same time by $.ajax

Believe you are facing a failureWhen requirejs, seajs, webpack, and other projects follow the commonjs specification, you want to use jQuery's ajax to request multiple files that are not interdependent (for example, JSON files for some map data):country.json, country-i18n.json,provinces.json, provinces-i18n.json, etc.) or data (consisting o ...

Posted by steveDD on Wed, 08 Jul 2020 09:33:20 -0700

The back-end data loaded by the select component of jqWEUI is items

jqweui I don't know how many people have used it. I often use it to develop webapps Its select component is more often used, but this time I need to get the selected items data from the database instead of writing the page dead After thinking about it for a while, I finally came up with a method, which is also effecti ...

Posted by Nommy on Tue, 07 Jul 2020 09:03:14 -0700

jquery, js knowledge

jquery selector Jquery selector requires two backslashes to escape special characters when fetching elements For example: var orgName=$("#whir$t3198_f4972").val(); A minor question: <div style="WIDTH: 100%" id="whir$t3198-whir$t3198_f4972"> <div class="cls-ui cls-ui-ui207 cls-ui-readonly cls-ui-1003131 ...

Posted by r3dn3ck on Thu, 02 Jul 2020 07:43:25 -0700

Pure html cross-domain access to java interfaces

What is cross-domain? Cross-domain means that html access addresses and interface addresses are in different domains. As long as one of the domain names, protocols, and ports is satisfied, cross-domain means cross-domain. Why not cross-domain? Because of security issues, such as when a user visits a bank website, ...

Posted by cshinteractive on Thu, 02 Jul 2020 07:35:54 -0700

Wechat cash red packet jump pit version

The official gives the early steps of opening the cash red envelope 1. It is worth noting that the calling IP address (public IP) needs to be configured in wechat payment merchant platform product center cash red packet product settings 2. Integrated business development thinking Official account offici ...

Posted by nevynev on Tue, 30 Jun 2020 00:04:16 -0700

Wechat applet -- 365 notes the 44th day --- get the user's authorized geographical location, longitude and latitude

Demand:1. When entering the page, request the user's geographic location authorization to obtain the user's current geographic location;2. Get the longitude and latitude of users, sometimes it is necessary to calculate the distance between users and stores by longitude and latitude; Steps:1. Wechat appl ...

Posted by aseaofflames on Mon, 29 Jun 2020 22:01:07 -0700

Custom request header of RestTemplate in SpringBoot WEB Series

User defined request header of RestTemplate in WEB Series The last article introduced the basic usage posture of RestTemplate, and at the end of the paper, some extended advanced usage posture were proposed. This article will focus on how to carry user-defined request header, such as setting user agent and carrying Cookie Get carry request ...

Posted by mysterbx on Mon, 29 Jun 2020 18:51:26 -0700

Why do I think Flutter is the future of mobile application development

Guide to Lao Meng: This is a boutique article translated by Lao Meng, which has a total of 3.6K of praise.Join the Lao Meng Flutter Exchange Group (wx:laomengit) and make great articles no mistake. Original address: https://medium.com/free-code-camp/why-i-think-flutter-is-the-future-of-mobile-app-development-768332b73c0d A few years ago, I ...

Posted by fighnight on Mon, 29 Jun 2020 17:15:02 -0700

jwt Logon Check Carry token

jwt login registration jwt concept Token does not need to be stored in the database.Just generate the key behind the scenes, then put the token in the request body or header when the client sends the request. When the client receives the token, it is stored in the local store or cookie. Note that sensitive information cannot be stored in the to ...

Posted by phat_hip_prog on Mon, 29 Jun 2020 09:12:56 -0700