Invoking ios and Andrews disconnection determination keyboard to enter a password when the native nested h5

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_40639990/article/details/89458928

Write h5 should click event when the event into touchstart

<Input id = 'rePassword' value = "" class = 'code' placeholder = "again to enter the password" maxlength = '16 'type =' password '/>

type = 'password' can be solved from the transfer can not enter Chinese keyboard

if (navigator.onLine) { 
alert('online'); 
} else { 
alert('offline'); 
}
 

Off the network is not used to determine the

Guess you like

Origin blog.csdn.net/qq_40639990/article/details/89458928