码迷,mamicode.com
首页 >  
搜索关键字:Navigator    ( 1680个结果
安卓和ios键盘挡住输入内容
<script>let iosUser = window.navigator.userAgent.indexOf('iPhone')let inp = document.querySelector('#inp');//input输入框if (iosUser != -1) { var bfscroll ...
分类:移动开发   时间:2018-08-03 14:09:59    阅读次数:191
【转】通过js获取系统版本以及浏览器版本
1 function getOsInfo() { 2 var userAgent = navigator.userAgent.toLowerCase(); 3 var name = 'Unknown'; 4 var version = "Unknown"; 5 if(userAgent.indexO ...
分类:Web程序   时间:2018-08-02 13:17:25    阅读次数:227
微信小程序FAQ
1. 图片名注意大小写. 不然本地预览是可以看到的.上传后用手机就看不到了. 2. bindtap等事件传参 3. 微信小程序 之 tabBar 和 navigator 一起使用 的问题 当注册了tabBar的时候,使用navigator时会发现不能跳转,这个时候需要在navigator上加上ope ...
分类:微信   时间:2018-08-01 18:24:42    阅读次数:200
上周总结
1. navigator.userAgent() 从浏览器获得值 ‘Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36’。 Moz ...
分类:其他好文   时间:2018-07-30 20:23:57    阅读次数:309
H5获取微信网页授权
//判断是否微信浏览器 isWeiXin: function(){ let ua = window.navigator.userAgent.toLowerCase(); return ua.match(/MicroMessenger/i) == "micromessenger"; }, //微信授权 ...
分类:微信   时间:2018-07-29 22:35:57    阅读次数:277
浏览器检测插件-检测Flash
//检测插件 (ie 中无效) function hasPlugin( name ){ name = name.toLowerCase(); for (var i =0; i<navigator.plugins.length; i ++) { if (navigator.plugins[i].nam ...
分类:其他好文   时间:2018-07-28 19:40:30    阅读次数:202
Django项目的创建与管理和pycharm与Github的秘密
随笔 - 174 文章 - 21 评论 - 19 <!--end: blogStats --> <!--end: navigator 博客导航栏 --> 随笔 - 174 文章 - 21 评论 - 19 <!--end: blogStats --> 随笔 - 174 文章 - 21 评论 - 19 ...
分类:其他好文   时间:2018-07-26 23:44:15    阅读次数:560
原生app与js交互 jsSDK设计
var UA = window.navigator.userAgent.toLowerCase()var isIOS = UA && /iphone|ipad|ipod|ios/.test(UA)function noop(a) {}//传参规则json格式//js调起原生var JsCallNat ...
分类:移动开发   时间:2018-07-26 16:20:27    阅读次数:570
判断访问设备的语句
如何判读打开的是pc端和移动端 分别加载不同的htmllet ua = window.navigator.userAgent.toLocaleLowerCase() let murl ="//m.jd.com" let reg =/iphone|android|symbianos|windows\s ...
分类:其他好文   时间:2018-07-24 19:25:00    阅读次数:134
6.2.23 Bom的其他对象
console.log(window.navigator) console.log(window.navigator.userAgent) console.log(window.location) //经常使用的方法,跳转页面 window.location.href = 'https://www. ...
分类:其他好文   时间:2018-07-22 11:34:24    阅读次数:152
1680条   上一页 1 ... 41 42 43 44 45 ... 168 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!