/**
* 判断是否微信
* @returns {boolean}
*/
function isWeiXin(){
var ua =window.navigator.userAgent.toLowerCase();
var s = ua.match(/MicroMessenger\/([\d.]+)?/i);
if(s == null){
return false;
}else{
return true;
}
}
/**
* 判断是不是IPhone
* @returns {boolean}
*/
function isIPhone(){
var ua =window.navigator.userAgent.toLowerCase();
var s = ua.match(/IPhone/i);
if(s == null){
return false;
}else{
return true;
}
}
时间: 2024-10-13 00:16:46