-
UA判断环境,可以判断是否在App内.
App默认自带的UA值(User Agent)为bsljavascript例:<script>varua=navigator.userAgent;if(ua.indexOf("bsl")>=0){alert('App内');}...
App默认自带的UA值(User Agent)为bsljavascript例:<script>varua=navigator.userAgent;if(ua.indexOf("bsl")>=0){alert('App内');}...