BOM(浏览器对象模型) 1、基本的BOM体系2、screen 对象3、location对象4、history对象5、navigator对象6 、时间间隔和暂停setTimeout 和 setInterval 的区别...
分类:
编程语言 时间:
2014-10-29 21:35:41
阅读次数:
202
1、判断浏览器是否为IE document.all ? 'IE' : 'others':在IE下document.all值为1,而其他浏览器下的值为0; navigator.userAgent.indexOf("MSIE")>0 ? 'IE' : 'others':navigator.userA.....
分类:
其他好文 时间:
2014-10-29 12:45:57
阅读次数:
356
navigator.geolocation例子 分类: javascript 2012-03-09 22:20 1601人阅读 评论(0) 收藏 举报 function浏览器[html] view plaincopy 转载:http://blog.csdn.net/gohome520/arti...
分类:
其他好文 时间:
2014-10-29 12:24:10
阅读次数:
210
因为file控件上传失败后会自动清空,所以使用文本框来保存上传路径,而且在不同的浏览器下,控件的样式也需要兼容。下面是自己用到的实例// 初始化判断浏览器的版本,根据版本的不同使用不同的样式function getExplorer() { //IE if (navigator.use...
分类:
Web程序 时间:
2014-10-29 12:10:03
阅读次数:
186
离线应用与客户端存储(一)离线检测navigator.onLine属性,值为true表示设备能上网,否则为离线,但在不同浏览器有差异。单独使用navigator.onLine不能确定网络是否联通,但请求发生错误时检测它仍然有用。online和offline 当网络从离线变成在线或在线变成离线 会触发...
分类:
编程语言 时间:
2014-10-29 01:53:17
阅读次数:
223
Reverting back to the 12.1.1 Homepage Layout Set the following profiles: FND: Applications Navigator Menu Consolidation count : 25 FND Slideout menu: ...
分类:
其他好文 时间:
2014-10-29 00:04:52
阅读次数:
272
window,navigator,screen,history,location;弹出框:仅弹出:alert('string');返回布尔值:confirm('string');返回输入值:prompt('string','default')离开页面:window.onnuload;window.o...
分类:
Web程序 时间:
2014-10-27 09:15:54
阅读次数:
201
window.navigator 对象包含有关访问者浏览器的信息,window.navigator 对象在编写时可不使用 window 这个前缀。浏览器支持Internet Explorer 9、Firefox、Chrome、Safari 以及 Opera 支持地理定位。注释:对于拥有 GPS 的设...
分类:
Web程序 时间:
2014-10-26 16:48:49
阅读次数:
261
加速计方法 var watchID=navigator.accelerometer.watchAcceleration(onSuccess,onError,{frequency:500});第一个参数为成功回调,第二个为失败回调,第三个为参数,表示每隔多少毫秒获取一次数据,方法返回一个ID该ID用户...
分类:
其他好文 时间:
2014-10-24 18:42:38
阅读次数:
147
If (navigator.appName.indexOf(“Explorer”) > -1) { //IE浏览器} else { //其他浏览器}
分类:
Web程序 时间:
2014-10-24 16:19:59
阅读次数:
209