The HTML5 page determines whether to install an app

Time:2020-9-4

General applications can be opened through scheme;
similar

<a href="goto://" ></a>

First, judge the mobile browser;

Try to open the app;

If it times out, go to the download page.

$(function(){   
    $(".a").click(function(){
        var the_ A). Attr ("a"); // get a download link
        If ( ua.match (/ micromessanger / I) = = = micromessage ") {// open wechat
            $(". Box BG"). Show(); // wechat opens the floating layer. Wechat does not support scheme to open non Penguin applications
        }else {  
            window.location.href=the_ A certain app on a mobile phone is opened
            setTimeout(function(){
                window.location.href= " https://itunes.apple.com/us/app/id....... "; // if it times out, jump to the app download page
            },500);
        }
     })
})