Mr.*_*T.K 6 html javascript css xhtml jquery
我可以看到很多地方用过console.log().谁能告诉我它为什么被使用?
像这样的东西,
function createCheckBox( idsToShow ) {
for( i = 0 ; i < 15 ; i++ ) {
console.log( idsToShow.indexOf('main' + i + '|' ) + ' ' + 'main' + i + '|' );
if( idsToShow != '' && idsToShow.indexOf('main' + i + '|' ) == -1 ) continue;
checkBoxs += "<li> <input type=\"checkbox\" id=\"main" + i + "\" value=\"Example" + i + "\" name=\"lbl"+ i +"\" /> <label id=\"lbl"+ i +"\">Example" + i + "</label></li>";
ids += 'main' + i + '|'; //is the check box id.
}
}
Run Code Online (Sandbox Code Playgroud)
Que*_*tin 10
它将事物记录到调试控制台(它内置于许多浏览器(例如Chrome开发者工具)中,并作为扩展(例如Firebug for Firefox)提供)