Experience with async/await

Running Environment This method is supported above node7 This feature is supported above chrome55 and is typically used in node development Introduction to async Async is actually the syntax sugar of promise, a method marked by async that returns a promise object async is defined as follows: async function name([param[, param[, ... par ...

Posted by Tryweryn on Sun, 12 Jul 2020 08:13:59 -0700

3 sentences of code for adding lines dynamically

Use Front End MVVM FrameworkAvalon.js, 3 sentences of code to do the dynamic addition of lines. <!DOCTYPE html> <html> <head> <title>example</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> ...

Posted by warstormer on Sat, 11 Jul 2020 08:48:55 -0700

3 sentences of code for adding lines dynamically

Use Front End MVVM FrameworkAvalon.js, 3 sentences of code to do the dynamic addition of lines. <!DOCTYPE html> <html> <head> <title>example</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> ...

Posted by sglane on Sat, 11 Jul 2020 08:50:25 -0700

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