Java learning note 5 (Introduction to classes and ArrayList)

1. Concept of class: abstract things in real life into code (class). We can use custom array type (class) to describe things in real life. 2. Analysis: use a mobile phone to analyze. Mobile phones can make calls, surf the Internet and listen to music. These are the methods. Mobile phones have models, colors and sizes, which are attributes. give ...

Posted on Sat, 02 May 2020 05:05:37 -0400 by pragma

Work note 3: online preview of PDF file using pdf.js

One of the most recent requirements for mobile projects (H5) is to Preview pdf files online. In fact, it can be realized by using window.open(), but this API normally opens Safari browser for preview on IOS, and downloads preview on Android. The customer is not satisfied with it. Moreover, when embedding this app into pin micro app, this API ha ...

Posted on Sat, 02 May 2020 03:21:29 -0400 by mrcodex

Implementation of HLS live broadcast (M3U8) review and download function

Streaming media is always the most important part of public life and entertainment, and it is also difficult in technology development, especially live broadcasting. Not only the function is irreplaceable, but also the development is more difficult than on-demand. Major sports events such as Rio Olympic Games can only be watched by live broadca ...

Posted on Sat, 02 May 2020 02:20:55 -0400 by The_Stranger

LS repository class library

Considering the instability of the mobile network environment, in order to avoid network latency, most of the mobile sites will store a huge class library in the LS of the local browser. Use a simple piece of code to ensure the correct loading of jQuery. Let's take a look at this code. The code details are written in t ...

Posted on Fri, 01 May 2020 15:00:10 -0400 by intenseone345

Set up notification management

Set up notification management After clicking a button, judge whether the notification bar of the mobile phone is open (most mobile phones are open by default, but like oppo, it is closed by default). If the notification bar is closed, the notification bar of the mobile phone will not receive the message prompt after r ...

Posted on Fri, 01 May 2020 14:32:39 -0400 by techwiz

About Baidu map's supplement: only display the marker within the scope of the screen (bug during rotation)

Before About Baidu map (4): point aggregation and only display the marker within the scope of the screen In this article, only the points within the scope of the screen are displayed. At that time, the operation is as follows: if (llr.latitude < lat && lat < ll.latitude && ll.longitude < lng && lng < llr. ...

Posted on Fri, 01 May 2020 00:29:23 -0400 by Lashiec

Jiannian 5: enterprise APP download and install through web page

In the two days after returning home, several members of the family haven't come back, especially some children. If you have nothing to do, you should continue to learn about technology. Today's Jane's activity is to write an article on technology. Write in the front: the download and installation of apps developed through Apple's personal and ...

Posted on Thu, 30 Apr 2020 19:34:00 -0400 by gp177

JAVA implementation of jump assistant program

Preamble: Today, I'm glad to see the articles of two bloggers. Thank you. I did it myself. For the implementation principle, please refer to the blogger https://www.cnblogs.com/dongkuo/p/8285162.html Thanks to the blogger http://www.cnblogs.com/litblank/p/8267526.html for providing the basic part of the code, which saves me from the trouble of ...

Posted on Thu, 30 Apr 2020 16:02:23 -0400 by swizzer

nodejs basic tutorial - simple blog (7) - blog background management

This class enters backstage management; The knowledge points of swig template engine will be involved; Download bootstrap and put it in the / public directory; New index.html and layout.html Code in admin/layout.html; <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> &l ...

Posted on Thu, 30 Apr 2020 09:36:55 -0400 by gwh

Form verification (input completed, mobile number, amount)

Basic function Amount verification // Positive decimal, two digits after the decimal point, the value cannot have 0 at the top. //'(\. [0-9] {1,2})? $)' modify '2' in it to change the verification of digits after decimal point var reg = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; var money = "520.100"; console.l ...

Posted on Thu, 30 Apr 2020 08:48:44 -0400 by y4m4