利用modernizr来解决浏览器兼容问题

http://modernizr.com里有很详细的使用说明,但是经常会被墙掉,所以这儿弄个备份,download it!
基本用法:
[code]
/**
* …demo.js
* @author amyflash.com
*/

(function() {
if(Modernizr.canvas)
{
console.log(“canvas is isSupported”);
}
console.log(Modernizr);
})();
[/code]

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>