/** |
|
* iOS bounces up the numeric keypad in three ways |
|
* 1. <input type= "Number" > can play the keyboard with a decimal point, you can not clean the keyboard, there are other kinds of characters, can switch input method |
|
* 2. <input type= "Tel" > can play up a pure numeric keypad, add #* special characters, can not switch input method, but no decimal point |
|
* 3. <input type= "text" pattern= "\d*" > can play only the number of keyboard, non-switchable input method, no decimal point |
|
* |
|
* Android is not the same as iOS: |
|
* 1. Tel type has decimal point |
|
* 2. Pattern not supported |
|
*/ |
|
|
|
/** |
|
* Control Keyboard lift |
|
* iOS8 can use <input Autofocus>, and automatically raise the keyboard without user action, the Android system is just the focus cursor, does not play the keyboard |
|
* When the user has clicked, you can make the keyboard pop up by calling the focus method |
|
* Lowering the keyboard requires calling Blur and focus to another a tag |
|
* |
|
* Also a more strange point in click event = "such as page roll, keyboard does not drop, etc. |
|
* It is estimated that many things have been done before the system triggers the Click event, so it is good to preventdefault and simulate tap in Touchend. |
|
* |
|
*/ |
The input property controls the pop-up keyboard type