1
Im使用Yeoman Webapp生成器与Modernizr(以及Bootstrap和Sass/Compass以防万一)。Yeoman WebApp Modernizr JSHint
我在main.js文件中的以下内容:
$(function() {
'use strict';
Modernizr.addTest('svgasimg', document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#Image', '1.1'));
if (!Modernizr.svgasimg) {
//Do stuff
}
});
Jshint是给了我一个 “没有定义Modernizr的” 错误。
任何帮助将非常感激。
非常感谢提前。