Animate in 1.jq do not repeat a large amount of use, can lead to memory overflow or leakage, very intuitive phenomenon is that the phone is too hot;
Remove the default style and change the color for the button type of 2.input:
-webkit-appearance:none;
Background-color:rgb ();
Border:none;
border-radius:5px;
3.js Monitor Touch events:
document.getElementById ("ID"). AddEventListener ( "Touchstart ", function () {alert (1);});
The top can only be an ID, which is invalid with class
JQ monitoring:
$ ("#id"). On ("touchstart", Function () { alert ( 1 ); });
4.input type= ' Tel ' or number can eject the numeric keypad
The 5.js eval () function executes the JS code, which can be used to convert a string to an object of the same name:
var New Audio (""); var " AA "+"a"; var audioobj =// can play normally
6. Note: The iOS system has restricted the audio video files in the Web page cannot be played automatically and must be played once after the user interacts (Android no problem)
For 7.Audio objects:
Played: Obj.play ();
Suspension: Obj.pause ();
Replay: obj.currenttime () = 0; Obj.play ();
H5 front end animate and other JS special effects issues Summary