1, Login to register mvp framework

1, model layer writes an interface public interface IMyView { //How to login successfully void loginSuccess(); // Method of login failure void loginError(String error); //Get login name String getMobile(); //Get login password String getPassword(); } 2, The main method of model l ...

Posted by monotoko on Sun, 05 Apr 2020 16:28:07 -0700

Angular learning notes (22) form processing verifier

Custom verifier Basic syntax: xxx(params:AbstractControl):{[key:string]}:any{ renturn null; } The type of the incoming parameter is AbstractControl, which is the common parent class of FormGroup, FormControl and FormArray. The incoming parameter declares what object type the validator is used for (the three mentioned above) The return v ...

Posted by suckablesausage on Sun, 05 Apr 2020 15:52:55 -0700

IE8 opens the homepage of the website to display the mobile website

There are many compatibility problems with IE browser Master the skill, no longer afraid Open the homepage of the website with IE browser, why does the homepage display the mobile page? Note: the current version of ie browser is IE8 and below Here is the code in CheckMobile.java file (before compilation), as follows: JA ...

Posted by fullyloaded on Sun, 05 Apr 2020 15:31:18 -0700

Android requests network data download APK

Today I wrote a small example of downloading an apk from the Internet by inputting the website. Record it for your own use. Operation rendering: Note: above Android 6.0 system, you need to dynamically apply for some dangerous permissions, that is, you need to actively pop up a dialog box to ask users whether they are willing to call the addre ...

Posted by m4x3vo on Sun, 05 Apr 2020 13:59:47 -0700

Understand the 23 type s of input elements in HTML forms

With the advent of HTML5, the input element has added various types to accept various types of user input. Among them, button, checkbox, file, hidden, image, password, radio, reset, submit and text are traditional input controls, and 13 new ones are color, date, date time, datetime local, email, month, number, range, search, tel, time, url and ...

Posted by blackcow on Sat, 04 Apr 2020 18:57:24 -0700

Step by step let you 55 necessary fragments to improve the efficiency of CSS development

Thank you for your reference- http://bjbsair.com/2020-04-01/tech-info/18398.html This article will record the CSS fragments that we usually use. Using these CSS can help us solve many practical project problems. It's suggested to like the collection of wall cracks for later reference Attach note link, read more high-quality articles in the pas ...

Posted by Vbabiy on Sat, 04 Apr 2020 18:24:33 -0700

JQuery implementation input upload image display thumbnail

Recently, I made a set of mobile shopping mall page, which has the function of uploading pictures to display thumbnails on the refund application page. I haven't done this before, so I sorted it out. First HTML: <p>Upload picture:</p> <div id="imgPreview"></div> <span class="upload-img">& ...

Posted by Dragoonus on Sat, 04 Apr 2020 16:58:33 -0700

Take you to master regular expression quickly

Regular expression 1, Introduction & overview Why regular expressions? Help us simplify string operation (judgment, replacement, cutting ). Regular expressions: expressions with correct rules   Effect: Simplify string operation (judgment, replacement, cutting ).   Pseudo code: Determine whether the current string is a QQ n ...

Posted by jviney on Sat, 04 Apr 2020 10:00:42 -0700

jquery form validation plug-in - validation form

The blogger recommended jQuery Validate before, because it was used before, but the configuration was a little bit cumbersome. Until the recent project used the validform, it opened my eyes. The whole interface suddenly felt too friendly. Let's take a few renderings first. There are very few css and j ...

Posted by chemoautotroph on Fri, 03 Apr 2020 23:15:41 -0700

Getting Started with the web Front End: A Prerequisite Fragment for Front End Masters to Be Efficient in CSS Development

This article will record the CSS fragments that we often use. Using these CSS can help us solve many practical project problems. Cracks suggest favoring your collection and looking at it later for easy searching. Clear Float There are many ways to avoid the hassle that floating causes to our code. One of the most convenient and compatible is t ...

Posted by WorldBizEduComputerShops on Fri, 03 Apr 2020 16:37:33 -0700