js判断是否安卓设备

2021-4-19 金莎网 JavaScript

				var u = navigator.userAgent;
				var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
				if(isAndroid){
					alert("是安卓");
				}

标签: 实例 js

Powered by emlog 京ICP备15030633号-2