This article mainly introduces the JS method used for Deeplink (to determine whether the phone is installed app), the need for friends can refer to the
Code function: To determine whether the mobile phone/tablet install app if installed then call app scheme, pass in URL as parameter, follow up if not installed then jump to app store/google play download app code as follows: (function () {var o Penurl = Window.location.search; try{OpenURL = openurl.substring (1,openurl.length);} catch (e) {} var Isios = Navigator.userAgent.match (' iPad ') | | Navigator.userAgent.match (' IPhone ') | | Navigator.userAgent.match (' IPod '), isandroid = navigator.useragent. Match (' Android '), Isdesktop =!isios&&! isandroid; if (Isios) {settimeout (function () {window.location = "itms-apps://itunes.apple.com/app/[name]/[id]?mt=8";},25); window.location = "[scheme]://[host]?url=" +openurl; }else if (isandroid) {window.location = "intent://[host]/" + "url=" +openurl+ "#Intent; Scheme=[scheme];p ackage=[package _name];end "; }else{window.location.href = OpenURL}}) ();