var ua = window.navigator.userAgent;
var isiOS = !!ua.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if(!isiOS){ //android 端
this.title = this.getUrlParam('title')||'default';
}else{ //IOS端
this.title = decodeURI(this.getUrlParam('title')||'');// decodeURI()转码
}
判断IOS和android(weex 项目)
最新推荐文章于 2022-09-15 11:46:53 发布