Simple data verification using JavaScript

Using JS to complete simple data verification requirement analysis Use JS to complete the simple data verification of the registration page. It is not allowed to leave the user name or password blank technical analysis from form property -- onsubmit must have a return value. If it is true, the submit is successful. If it is false, it cannot be ...

Posted by guayaquil on Tue, 05 May 2020 18:15:24 +0200

Android drawing mechanism and processing skills

1 unit conversion Due to the different screen density, the length of the same pixel size and the length displayed on the screen with different density are different. The following is the conversion formula of each density value, In mdpi, 1dp = 1px, In hdpi, 1dp = 1.5px, In xhdpi, 1dp = 2px, In the xxhdpi, 1dp = 3px ...

Posted by nite4000 on Mon, 04 May 2020 23:57:40 +0200

Using jQuery mobiscrol plug-in to select date, select and treeList

Mobiscrol is a very useful plug-in for mobile terminal sliding selection. It can be used to select dates, simple options or some complex tree structure options. Simple sharing. The dependency is also relatively simple, just introduce a mobiscrol-2.13.2.full.min.js file and a mobiscrol-2.13.2.full.min.css file. Download directly mobiscrol ...

Posted by travelbuff on Mon, 04 May 2020 23:24:12 +0200

Android exception capture

Android exception capture and write text Application scenario The developed software application inevitably has various problems in the actual scene, but the developers can't debug in real time on the spot, and the remote can't present the scene, so that It can't solve this problem. The best solution is to integrate Tencent's mobile anal ...

Posted by .Darkman on Mon, 04 May 2020 19:04:05 +0200

Android integrated Baidu character recognition 1.4.0

Android integrated Baidu character recognition 1.4.0 Baidu AI open platform has opened the service of character recognition, which can realize the recognition requirements of some general characters, network pictures and characters, various cards (ID card, bank card, driver's license, driving license, license plate bus ...

Posted by Drewser33 on Mon, 04 May 2020 13:43:54 +0200

Customize the color of the status bar

First, I want to go to Tucao, and I read many blogs on the Internet. I am forced to make complaints about it. Few people can really solve the problem. Some people can really change the color of the status bar. But Nima has a gray layer on top of it, which is also called solving the problem. Some people say it's not easy ...

Posted by mmtalon on Mon, 04 May 2020 06:09:17 +0200

Moving end suspension ball

This is a common case when writing mobile terminal. Many web apps will have a mobile phone like suspension ball, which can be dragged on the interface at will, and then clicking on it is a connection. The effect chart is as follows In the figure, there is a customer service suspension ball that is connected by a window and can slide freely. T ...

Posted by iRock on Sun, 03 May 2020 13:39:32 +0200

Automatic testing of python + selenium -- basic operation of elements

1. Positioning through CSS find_element_by_css_selector() driver.find_element_by_css_selector("#kw").send_keys("Hu Ge") # Baidu home page input box 2. Text information Element assignment .send_keys() driver.find_element_by_xpath('//*[@id="kw"]').send_keys("Hu Ge") # Search box input Hu Ge Get text informatio ...

Posted by PantherX on Sat, 02 May 2020 17:12:08 +0200

How to start the activity of another APP from one APP

How to start the Activity of another APP from one APP 1. Start with custom action In this way, you only need to set an action in the code, and the system will automatically filter to find the corresponding Activity of this action Code of current APP Intent intent = new Intent(); //Here is the custom action used in ...

Posted by ChrisBoden on Sat, 02 May 2020 08:53:50 +0200

Timer implementation - fill in time zone pit

1. Introduction There is a timer requirement for the project, as shown in the figure below. It was supposed to be quite simple, but it actually involves the time zone. The renderings are as follows 2. Solution The key code is relatively simple Milliseconds to HH:ss:mm Refresh and change the time on the control regularly The ...

Posted by Someone789 on Fri, 01 May 2020 07:53:43 +0200