判断是否为IOS设备

217 阅读1分钟

判断是否为IOS设备

function getIOS(){
	var u = window.navigator.userAgent;
    return !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
}