<script>
//判断ios还是android终端
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 ||u.indexOf('Adr') > -1; //android终端
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if(isAndroid){//判断是安卓终端后执行什么操作
}
</script>