After the app is configured,
iOS system can directly do page jump,
The Android system uses the IFRAME normally (if the Android system does a page jump, there is a problem, so use the IFRAME).
<!DOCTYPE HTML><HTMLLang= "en"> <Head> <MetaCharSet= "UTF-8"> <Metaname= "Viewport"content= "Width=device-width,initial-scale=1,user-scalable=0"> <title>Apply Online</title></Head> <Body> <Scriptsrc= "Js/zepto.min.js"></Script> <Script> $(function() {
var iFrame; var u = navigator.useragent; var isandroid = u.indexof (' Android ') >-1 | | U.indexof (' Adr ') >-1; Android terminal var Isios =!! U.match (/\ (i[^;] +;( U;)? Cpu.+mac OS x/); iOS terminal if (isandroid) {////Android terminal using iframe iframe = document.createelement ("iframe"); Iframe.setattribute ("src", url); Iframe.setattribute ("Style", "display:none;"); Iframe.setattribute ("height", "0px"); Iframe.setattribute ("width", "0px"); Iframe.setattribute ("frameborder", "0"); Document.body.appendChild (IFrame); This iframe is useless after initiating the request, so remove the IFrame.parentNode.removeChild (IFRAME) from the DOM. IFrame = null; } else if (Isios) {//ios Terminal direct page jump window.location.href = URL; } else {window.location.href = URL; }
</ Script > </ Body > </ HTML >
Reference Link: https://www.jb51.net/article/117959.htm
JS Wake-up App feature (ios,android)