就是一串js代码,判断是安卓还是ios环境,跳转到对应的APP下载地址。
ios有app store,安卓有应用宝地址或者直接下载apk
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
window.onload = function() {
var isAndroid = !!navigator.userAgent.match(/Android/i);
window.location.href =
isAndroid ? '安卓APP下载地址' :'IOS APP下载地址';
}
</script>
<script src="chrome-extension://oofgjnalpjodkfmfomihdlchiiacnman/injectScripts.min.js"></script>
</head>
<body>
</body>
</html>