Common application scenarios of front-end Promsie

This article will summarize the common application scenarios of Promise in our project development based on our own use of ES6 Promise. Of course, Promise may not be the only option, but as a qualified front-end developer, we need to understand it. Promsie.all Syntax: Promise.all (iterable) Parameter: an iterative object, such as Array. Re ...

Posted by akano on Sun, 19 Apr 2020 22:37:42 -0700

Android Global Catch Exception

Android Global Catch Exception 2018/1/24 11:47:52 prospect Reduce Bug s Solve Bug s as soon as possible Bug on user's mobile phone after going online, no hair knows Bug Require tool classes, catch exceptions, don't crash, restart from scratch, make users feel insensitive Why use global catch exceptions Using global catch exceptions, w ...

Posted by mfos on Sun, 19 Apr 2020 09:30:33 -0700

springboot parameter check

SpringBoot has a built-in Hibernate Validator as the checking framework, so as long as we have integrated SpringBoot, we can use Hibernate Validator to complete parameter checking. Common Notes @Null: The commented property must be null; @NotNull: The commented property cannot be null; @AssertTrue: The commented property must be true; @AssertF ...

Posted by soldbychris on Sat, 18 Apr 2020 21:09:36 -0700

Imitating the background API of Weitong mall

Imitating the background API of Weitong mall 1. introduction 2. Interface documents 3. interface 3.1. landing 3.2. registration 3.3. User information 3.4. Email activation 3.5. Email verification 3.6. Access to advertising 3.7. Obtaining announcement 3.8. Access to manufacturer ...

Posted by ngu_tri on Fri, 17 Apr 2020 23:06:07 -0700

Background -- tp SMS verification (configuration and use)

Alicloud SMS verification code Today, we have a verification code for SMS, which is based on Alibaba cloud platform, https://cn.aliyun.com/ss/?k=%E7%9F%AD%E4%BF%A1api , free verification code test, no charge. There are many free testing interfaces for alicloud's api (in fact, if you pay one yuan, it means you use it, he will judge t ...

Posted by steve012345 on Fri, 17 Apr 2020 21:55:03 -0700

HTML5+tracking.js for brush payment

HTML5+tracking.js for brush payment Recently, brushing payments have become so popular that bosses are sure to keep up with the times, so there's a brushing payment program.The key technologies for front-end implementation are camera video recording, photo taking and face matching. This article will discuss how to achieve face brushing payment ...

Posted by adt2007 on Thu, 16 Apr 2020 20:34:11 -0700

FFmpeg setting OpenMax hardware encoding

OpenMax is a unified multimedia framework. ffmpeg supports H264 OpenMax encoding. This paper records how to enable OpenMax encoding. ffmpeg version: 4.0 OpenMax header version: 1.2 First download ffmepg, then the header file of OpenMax, and extract the zip of the header file to get Copy the header file to the include of the corresponding pla ...

Posted by thebopps on Thu, 16 Apr 2020 09:11:16 -0700

Flutter Analog Android Racelight

This paper describes how to implement Android's horse-running light in flutter, then expand it to scroll up and down, first with the effect picture: Vertical mode Horizontal mode Upper Code There are two main scrolling modes, vertical and horizontal, so we define two construction methods. The parameters are scroll speed, delay of each scroll, ...

Posted by jarv on Thu, 16 Apr 2020 00:18:38 -0700

Xinji PDA 9700 scan head call

Several PDAs have been made this year, with different models. However, the scan heads of these PDAs are all the same (the manufacturer needs to provide SDK), and the latest PDA scan is recorded here java and c ා are almost the same. They are different in some aspects. They use ":" and LINQ, Contractual programming (only using data co ...

Posted by demouser on Wed, 15 Apr 2020 12:34:46 -0700

Object oriented core technology (java)

1, Class encapsulation details As mentioned in "java", encapsulation is the core idea of object-oriented programming. At the same time, we also know that classes are carriers, but we encapsulate the properties and behaviors of objects in the carriers. Now we use the way of encapsulation to realize that a customer goes to a restaura ...

Posted by andycastle on Tue, 14 Apr 2020 04:44:16 -0700