https://blog.csdn.net/qq_27626333/article/details/51815467 PositionOptions: JSON对象,监听设备位置信息参数 ...
分类:
其他好文 时间:
2018-11-02 20:29:02
阅读次数:
225
判断机型是否为iphoneX isIPhoneX() { var u = navigator.userAgent; var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 if (isIOS) { if (screen.heig ...
分类:
其他好文 时间:
2018-10-29 11:52:47
阅读次数:
637
DOM 1.概念起源: 文档对象模型(Document Object Model,简称DOM),是W3C组织推荐的处理可扩展标志语言的标准编程接口。在网页上,组织页面(或文档)的对象被组织在一个树形结构中,用来表示文档中对象的标准模型就称为DOM。Document Object Model的历史可以 ...
分类:
其他好文 时间:
2018-10-27 00:17:24
阅读次数:
169
projectExplorer与navigator的切换 projectExplorer视图效果 想要此视图效果步骤如下: 分割 navigator视图效果 想要此视图效果步骤如下: 树状视图与平面视图的切换 切换步骤如下 树状效果 平面效果 ...
分类:
系统相关 时间:
2018-10-23 14:59:58
阅读次数:
424
简单明了判断浏览器Firefox:typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;chrome typeof navigator !== 'undefined' ...
分类:
其他好文 时间:
2018-10-23 14:28:47
阅读次数:
152
BOM 1、窗口操作 open 2、历史记录 history 3、导航器 navigator 4、地址信息 location JS BOM操作 ...
分类:
Web程序 时间:
2018-10-22 22:17:26
阅读次数:
200
BOM: 浏览器对象模型 1.如何检测浏览器类型 2. 拆分url各部分 部分属性: navigator: 浏览器信息 screen : 屏幕属性 location : 地址栏信息 history: 前进后退 location: 2. location.protocol // 协议 http等 lo ...
分类:
Web程序 时间:
2018-10-21 00:56:49
阅读次数:
179
var browser = { versions: function () { var a = navigator.userAgent, b = navigator.appVersion; return { trident: a.indexOf("Trident") > -1, presto: a. ...
分类:
移动开发 时间:
2018-10-20 11:47:50
阅读次数:
208
/*这段代码是固定的,必须要放到js中*/function setupWebViewJavascriptBridge(callback) { var u = navigator.userAgent; var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS ...
分类:
移动开发 时间:
2018-10-19 00:16:48
阅读次数:
268
if(navigator.userAgent.indexOf("Chrome") >0 ){var winOption = "height="+height+",width="+width+",top=50,left=50,toolbar=no,location=no,directories=no, ...