1
<script src="modernizr-1.7.min.js"></script>
var modernizr_fields = new Array("canvas","video","webgl");
for (i=0; i < modernizr_fields.length; i++) {
document.writeln(modernizr_fields[i] + " ");
if (Modernizr + "." + modernizr_fields[i])
document.writeln("true");
else
document.writeln("false");
document.writeln("<br>");
}
我知道問題是與這條線的功能與點標記JavaScript的使用級聯和數組值
請幫助我的語法。
完美!謝謝 – toop 2011-05-19 09:17:42