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

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