Window.onload = function () {Jumptoapp ()}var browser = {isandroid:function () {return Navigator.userAgent.match ( /android/i)? True:false; }, Ismobileqq:function () {var ua = navigator.useragent; return/(Ipad|iphone|ipod). *? (IPAD)? qq\/([\d\.] +)/.test (UA) | | /\bv1_and_sqi?_ ([\d\.] +)(.*? qq\/([\d\.] +))?/.test (UA);}, Isios:function () {return navigator.userAgent.match (/iphone|ipad|ipod/i)? True:false;}, ISWX: function () {return Navigator.userAgent.match (/micromessenger/i) True:false;}, Ischrome:function () {return Navigator.userAgent.match (/chrome/i)? True:false; }};var Createiframe = (function () {var iframe; return function () {if (IFRAME) {return iframe; } else {iframe = document.createelement (' iframe '); Iframe.style.display = ' None '; Document.body.appendChild (IFRAME); return iframe; }}) () var Jumptoapp = function () {var isandroid = function () {return Navigator.useraGent.match (/android/i)? True:false; } var Isios = function () {return navigator.userAgent.match (/iphone|ipad|ipod/i)? True:false; }if (Isios ()) {window.location.href = "sxz://sxz.com";//pseudo protocol scheme} else if (Isandroid ()) {var IFR = Document.createele ment (' iframe '); IFR.SRC = "sxz://sxz.com";//pseudo protocol scheme Ifr.style.display = ' none '; Document.body.appendChild (IFR); }}$ (' #open_app '). Click (function () {Openapp ();}) var Openapp = function () {if (Browser.isios ()) {window.location.href = "ios"; } else if (Browser.isandroid ()) {window.location.href = "Android";}
H5 scan QR code open app and click to download function implementation