摘要: 本人比较懒惰,截取几张图片参考 阅读全文
posted @ 2015-03-09 15:59 戴维彦龙 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 浏览器的支持情况:平台浏览器history API支持情况IOS4.2-4.3*,5.0+Android2.2,2.3,4.04+Chrome for AndroidAll versionsInternet Explorer10+(windows phone8) 1 var useHash = f... 阅读全文
posted @ 2014-12-30 21:20 戴维彦龙 阅读(627) 评论(0) 推荐(0) 编辑
摘要: //"webkit":safari或chrome//"opera":Opera//"mozilla":Firefox或者其他gecko内核的浏览其//"msie":IE var browser=(function(){ var s=navigator.userAgent.toLowerCase()... 阅读全文
posted @ 2014-12-13 21:12 戴维彦龙 阅读(163) 评论(0) 推荐(0) 编辑
摘要: function urlArgs(){ var args={}; var query=location.search.substring(1); var pairs=query.split('&'); for(var i=0;i<pairs.length;i++){ var pos=p... 阅读全文
posted @ 2014-12-13 20:17 戴维彦龙 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 执行脚本/*@cc_on@if(@_jscript)console.log('In IE');@else*/console.log('other explorer');/*@end@*/ 查看console输出: 阅读全文
posted @ 2014-12-12 21:42 戴维彦龙 阅读(126) 评论(0) 推荐(0) 编辑
摘要: http://w3c.github.io/deviceorientation/spec-source-orientation.html 阅读全文
posted @ 2014-12-11 22:24 戴维彦龙 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 一、避免文字字体大小重置html{ -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; text-size-adjust:100%;}二、视口大小对于一些老的浏览器需要使用如下代码:对于微软的PocketPC,需要使用一个特别的属... 阅读全文
posted @ 2014-12-11 22:14 戴维彦龙 阅读(127) 评论(0) 推荐(0) 编辑
摘要: HTML5 Doctor:http://html5doctor.com/Dive Into HTML5:http://diveintohtml5.comHTML5 Rocks:http://www.html5rocks.com 阅读全文
posted @ 2014-12-11 21:27 戴维彦龙 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1 (function () { 2 3 var SomgLib= { 4 5 //--------------------------------------------------------------------------- 6 7 VERSION:... 阅读全文
posted @ 2014-10-22 11:12 戴维彦龙 阅读(402) 评论(0) 推荐(0) 编辑