摘要: 1.浏览器能力检测 根据浏览器不能将能力组合起来是更可取的方式。一次性检测所有相关特性,而不分别检测。 举例1 //确定浏览器是否支持Netscape风格的插件2 var hasNSPlugins = !!(navigator.plugins && navigator.plugins.length)3 4 //确定浏览器是否具有DOM1级规定的能力5 var hasDOM1 = !!(document.getElementById && document.createElement && document.getElementByTagName) 阅读全文
posted @ 2014-02-21 22:01 未来动力 阅读(192) 评论(0) 推荐(0)
摘要: 1.js特性检测 http://peter.michaux.ca/articles/feature-detection-state-of-the-art-browser-scripting2.How to write the plugin in jQuery.http://www.codeproje... 阅读全文
posted @ 2014-02-21 08:06 未来动力 阅读(129) 评论(0) 推荐(0)